Рет қаралды 14,613
This is the video under the series of DATA STRUCTURE & ALGORITHM in a HASHING Playlist. We are going to solve the problem "Check if two arrays are equal or not" from geeks for geeks which are solved by using unordered_map in c++
Given two arrays A and B of equal size N, the task is to find if given arrays are equal or not. Two arrays are said to be equal if both of them contain the same set of elements, arrangements (or permutation) of elements may be different though.
Note: If there are repetitions, then counts of repeated elements must also be the same for two arrays to be equal.
Input:
N = 5
A[] = {1,2,5,4,0}
B[] = {2,4,5,0,1}
Output: 1
Explanation: Both the array can be rearranged to {0,1,2,4,5}
We also Provide courses on Competitive Programming and Data structure and Algorithms. Please see our Full Playlist on our Channel.
----------------------------------------------------------------------------------------
Check if two arrays are equal or not: practice.geeks...
code in This Video: github.com/Pri...
Pdf in this video: github.com/Pri...
----------------------------------------------------------------------------------------
*Unacademy *
INVITATION CODE: HELLOWORLD
Champion: 3 Month Course on Advanced Programming Topics: bit.ly/2RtoxBW
Educator Profiles:
Sanket Singh: unacademy.com/...
Riya Bansal: unacademy.com/...
----------------------------------------------------------------------------------------
*Follow me *
LinkedIn► / iamprince
Facebook► / helloworldofficials
Instagram► / helloworldbyprince
Twitter► / prince_king_
Telegram► telegram.me/he...
----------------------------------------------------------------------------------------
►Our Playlists on:-
►Competitive Programming: • How to start Competiti...
►C++ Full Course : • L-01 || Introduction a...
►Algorithms: • L-01 || Prefix Sum Arr...
►Data Structure: • Data Structures with C...
------------------------------------------------------------------------
🌟 Please leave a LIKE ❤️ and SUBSCRIBE for more AMAZING content! 🌟
✨ Tags ✨
how to Check if two arrays are equal or not
question asked in Goldman Sachs interview
how to crack Goldman Sachs online test
how to crack Goldman Sachs
off-campus placement
how to learn to code for beginners
check if two arrays are equal or not
hashing in data structure
Best Telegram channel for Off-campus Placement drive
hashing in a data structure in Hindi
unordered_map
#hashing #geeksforgeeks #programming