Check if two arrays are equal or not | GeeksforGeeks | Hashing data structure | Leetcode DSA series

  Рет қаралды 14,613

Hello World

Hello World

Күн бұрын

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

Пікірлер: 20
@prakharkapoor2572
@prakharkapoor2572 3 жыл бұрын
your hashing series is awesome dude
@HelloWorldbyprince
@HelloWorldbyprince 3 жыл бұрын
Aage aage dekho magic ✨
@SharvanKumar-ui1kw
@SharvanKumar-ui1kw 3 жыл бұрын
I'm first viewer
@HelloWorldbyprince
@HelloWorldbyprince 3 жыл бұрын
Thanks for the support ❤️
@sawansinghparihar6918
@sawansinghparihar6918 2 жыл бұрын
Thank you
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
your welcome bro
@mcaddit6802
@mcaddit6802 3 жыл бұрын
you are uploading what content i am looking for, champ!!
@ashutosmisraa
@ashutosmisraa 3 жыл бұрын
Bhai Maza Aaya, aur mai jo yeh maza hai Engineering krne wale Har coder ko dena chahta hun 🙂
@HelloWorldbyprince
@HelloWorldbyprince 3 жыл бұрын
Ekdum bhai sure But kaise ?
@amanahmed6057
@amanahmed6057 3 жыл бұрын
@@HelloWorldbyprince jisko lena hoga wo khood dhoond legaa
@chidambarjoshi3470
@chidambarjoshi3470 3 жыл бұрын
why did u put return true at last , if second for loop isnt compared with first , how will it be true
@HelloWorldbyprince
@HelloWorldbyprince 3 жыл бұрын
Okay, Now take a 3 random example and dry run your example with my code in the video You will get your answer what you are saying
@BTechBackEndWala
@BTechBackEndWala 2 жыл бұрын
find() takes O(log n) time then how you can say that this problem is solve in O(n) time.
@ananytripathi8528
@ananytripathi8528 Жыл бұрын
avg time in creating a map will be 0(n)
@aryangupta7290
@aryangupta7290 3 жыл бұрын
Bhaiya, please start graph as well.
@HelloWorldbyprince
@HelloWorldbyprince 3 жыл бұрын
I am thinking 🤔 too
@zafdell8170
@zafdell8170 3 жыл бұрын
Bhaiya off campus me kisi kisi me batch clear nhi rahta h plz batch jaroor mention krr diya kariye sbb me Bss kisi kisi me nhi rahta h Jaisa ki golden rule h mast h aapki video 😊😊😃😀
@HelloWorldbyprince
@HelloWorldbyprince 3 жыл бұрын
Sure
@yashwantpratapsingh6284
@yashwantpratapsingh6284 2 жыл бұрын
bhiaya hoga hai
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
wahhhhh buddy congrats
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 704 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Lecture21: Solving LeetCode/CodeStudio Questions [Arrays]
33:32
CodeHelp - by Babbar
Рет қаралды 479 М.
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 677 М.
Sliding window technique - Inside code
9:07
Inside code
Рет қаралды 96 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН