G-50. Accounts Merge - DSU

  Рет қаралды 84,053

take U forward

take U forward

Жыл бұрын

GfG-Problem Link: bit.ly/3sl2Xia
C++/Java/Codes and Notes Link: takeuforward.org/data-structu...
DP Series: • Striver's Dynamic Prog...
SDE Sheet: takeuforward.org/interviews/s...
Check out our Website for curated resources:
Our Second Channel: / @striver_79
In case you are thinking to buy courses, please check below:
Code "takeuforward" for 15% off at GFG: practice.geeksforgeeks.org/co...
Code "takeuforward" for 20% off on sys-design: get.interviewready.io?_aff=takeuforward
Crypto, I use the Wazirx app: wazirx.com/invite/xexnpc4u
Take 750 rs free Amazon Stock from me: indmoney.onelink.me/RmHC/idje...
Earn 100 rs by making a Grow Account for investing: app.groww.in/v3cO/8hu879t0
Linkedin/Instagram/Telegram: linktr.ee/takeUforward
---------------------------------------------------------------------------------------------------------------------------

Пікірлер: 189
@takeUforward
@takeUforward Жыл бұрын
Let's continue the habit of commenting “understood” if you got the entire video. Please give it a like too,. Do follow me on Instagram: striver_79
@KiranKumar-sb3ti
@KiranKumar-sb3ti Ай бұрын
understood
@kritikarawat2180
@kritikarawat2180 Жыл бұрын
I feel you are the best graph teacher bcz after watching graph videos in this channel i didnt looked at any other channel to understand any question.
@rishabhgupta9846
@rishabhgupta9846 Жыл бұрын
understood ,but for this solution even after knowing it is a DSU question such implementation is tough
@vishious14
@vishious14 9 ай бұрын
The best explanation. I was able to code it on my own as soon as you explained the approach.
@cinime
@cinime Жыл бұрын
Understood! Super amazing explanation as always, thank you very much!!
@lakshsinghania
@lakshsinghania Жыл бұрын
understood! with such a clarity. was not able to figure it out whether its DSU qs or not
@LBK3
@LBK3 Жыл бұрын
Understood ❤ the intuition has been explained excellently
@1tav0
@1tav0 Жыл бұрын
this problem was awesome for my brain. Thank u so much for making it so clear striver understood
@arjundutta1515
@arjundutta1515 2 ай бұрын
I've explored a lot of youtube videos to understand graph. No one can exaplain with such a clarity and concept. I was also able to do similar kind of problems after learning the pattern. Greate playlist....
@p38_amankuldeep75
@p38_amankuldeep75 Жыл бұрын
understood💙💙💙 just enjoying this amazing graph series superb explanation ❤
@aruna5869
@aruna5869 7 ай бұрын
understood. you are brilliant in finding suitable examples to make us understood❤
@beinghappy9223
@beinghappy9223 Жыл бұрын
Hell of a code . Amazing explanation
@SumitKeshariMCS
@SumitKeshariMCS Жыл бұрын
Understood!! For this particular video, need to revise
@manishkarmakar3927
@manishkarmakar3927 7 ай бұрын
The way you explained the problem is simply mind blowing.... thanks bhaiyaa 💌
@sapna2019
@sapna2019 Жыл бұрын
Thanku striver for giving such a great content.
@user-kl3qv1sc8k
@user-kl3qv1sc8k Ай бұрын
brilliant explaination, thanks a lot striver
@Sumeet_100
@Sumeet_100 Жыл бұрын
Thank You so much striver bhaiyya for this amazing Graph Series !!
@adityaagarwal2324
@adityaagarwal2324 Жыл бұрын
Understood Awesome explanation 🔥
@nirupamkumar6760
@nirupamkumar6760 Жыл бұрын
Very good explanation, it makes life easy
@sarankumaar6009
@sarankumaar6009 Жыл бұрын
understood. I solved it on my own just bcoz of ur awsome disjoint explanation video :)
@sukhpreetsingh5200
@sukhpreetsingh5200 Жыл бұрын
watched it twice!! but now understood it
@Chandraprakash-kx4ic
@Chandraprakash-kx4ic Жыл бұрын
This series is Totally dope.. Thank You Striver.. ok ok forgot to write.. "UNDERSTOOD"
@mathy642
@mathy642 8 ай бұрын
Hey Striver Thank you for such wonderful explanation!!!:)
@amanbhadani8840
@amanbhadani8840 Жыл бұрын
Ye new and unique question tha bhaiya, understood.
@r_uhi05
@r_uhi05 4 ай бұрын
understood! Great explanation.
@mbm.editzz
@mbm.editzz 7 ай бұрын
GOATED dsa mentor/teacher. Understood.
@Sahil1001
@Sahil1001 10 ай бұрын
its a tough one for sure but understood ur explaination , i need some time to digest it though
@paragroy5359
@paragroy5359 5 ай бұрын
Thanks a lot. Nice video keep on making such videos. Awesome Content!!
@stith_pragya
@stith_pragya 7 ай бұрын
Thank You So Much for this wonderful video.........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@Moch117
@Moch117 9 ай бұрын
Thanks Striver. This problem is hard af even if you know its DSU
@shubhamkumar3198
@shubhamkumar3198 Жыл бұрын
awesome explanation Understood sir
@sunilpanchal1498
@sunilpanchal1498 Жыл бұрын
Great explanation 🔥
@factsworlda2k547
@factsworlda2k547 5 ай бұрын
you are amazing Striver 🙌🙌
@iamnoob7593
@iamnoob7593 8 ай бұрын
Brilliant Explanation
@shitizgoel5027
@shitizgoel5027 7 ай бұрын
Very nice explanation bhaiya! Thanks
@Rajat_maurya
@Rajat_maurya Жыл бұрын
understood no way i am going to guess this is a DSU question without prior practice
@shivanshumishra0560
@shivanshumishra0560 Жыл бұрын
Awesome explanation bhaiya 🔥
@abhishek__anand__
@abhishek__anand__ Жыл бұрын
Great Explanation
@adebisisheriff159
@adebisisheriff159 6 ай бұрын
Thanks so much striver!!!!
@onlysparsh
@onlysparsh Жыл бұрын
Great explanation sir
@kshitijmishra2716
@kshitijmishra2716 Жыл бұрын
understood maja aaa gya 😎😎🔥🔥
@SunnyKumar-dw9ze
@SunnyKumar-dw9ze 9 ай бұрын
Amazing explanation
@MCA_HimanshuSeth
@MCA_HimanshuSeth Жыл бұрын
very nice explantion sir
@rushidesai2836
@rushidesai2836 4 ай бұрын
On second rewatch, understood it better.
@suryasingh2563
@suryasingh2563 Жыл бұрын
understood bhaiya❣
@parshchoradia9909
@parshchoradia9909 Жыл бұрын
Understood Sir!
@UECAshutoshKumar
@UECAshutoshKumar 7 ай бұрын
Thank you sir 😊
@World-Of-Mr-Motivater
@World-Of-Mr-Motivater 2 ай бұрын
striver since the map(incase of ordered map) already stores the mails in the sorted order is sorting the mail is neccessary?
@-VLaharika
@-VLaharika Жыл бұрын
Understood 👍
@muditkhanna8164
@muditkhanna8164 10 ай бұрын
Disjoint set does these merging things pretty easy.
@sairam3351
@sairam3351 8 ай бұрын
Understood ❤
@suryakiran2970
@suryakiran2970 Жыл бұрын
Understood❤
@tiyaroy4714
@tiyaroy4714 20 күн бұрын
understood!!!
@ACUCSPRADEEPB-up9ne
@ACUCSPRADEEPB-up9ne Жыл бұрын
Understood✌️
@herculean6748
@herculean6748 Жыл бұрын
Thanks🙌
@uknowme48
@uknowme48 Жыл бұрын
"US" BHAIYA .....whenever the heart is broken....video dekh dekh kr song yaad ho gya hai
@uknowme48
@uknowme48 Жыл бұрын
your*
@bhavya8608
@bhavya8608 Жыл бұрын
understoood!!!
@saseerak8763
@saseerak8763 Жыл бұрын
understood!
@vatsalvasoya5243
@vatsalvasoya5243 Жыл бұрын
Understood!!
@japkiratsingh3728
@japkiratsingh3728 Жыл бұрын
understood💖💖
@prajjwalgurjar3887
@prajjwalgurjar3887 Жыл бұрын
understood🙌
@manasranjanmahapatra3729
@manasranjanmahapatra3729 Жыл бұрын
Understood.
@RituSingh-ne1mk
@RituSingh-ne1mk 6 ай бұрын
Understood!
@NeverGive-Up..26
@NeverGive-Up..26 Ай бұрын
Understood
@dreamyme543
@dreamyme543 Жыл бұрын
Understood:)
@rounakmukherjee9540
@rounakmukherjee9540 Жыл бұрын
UNDERSTOOD
@priyankkumawat4405
@priyankkumawat4405 Жыл бұрын
I have subscribed bro
@girikgarg8
@girikgarg8 Жыл бұрын
Done!
@HarshitMaurya
@HarshitMaurya Жыл бұрын
understood
@shaliniguptaietlucknow2301
@shaliniguptaietlucknow2301 Жыл бұрын
Thanks by heart
@shaliniguptaietlucknow2301
@shaliniguptaietlucknow2301 Жыл бұрын
Understood!
@after_dark_777
@after_dark_777 3 ай бұрын
how does this code handle repeating mails?
@ayushman_sr
@ayushman_sr 2 ай бұрын
GFG doesn't take output in any order but Leetcode does, bug is there in GFG for this problem. I coded in python
@akashsahu2571
@akashsahu2571 Жыл бұрын
yes
@MadhavGupta-fi2tu
@MadhavGupta-fi2tu Жыл бұрын
They made it hard after strivers video
@nishantdehariya5769
@nishantdehariya5769 4 ай бұрын
nice
@ashishkumaryadav5252
@ashishkumaryadav5252 Жыл бұрын
Supreme.
@a2_63_vimalmishra9
@a2_63_vimalmishra9 Жыл бұрын
why i am getting wa at 56 in gfg
@ahmedzaidi4228
@ahmedzaidi4228 Жыл бұрын
hard one, but understood
@shivarajput9719
@shivarajput9719 6 ай бұрын
In the example you are saying 3 ka ultimate parent is 0, but if 0 index name is john and 3rd index name is ram then in the list it will store john -> all emails, ideally instead of john there will be ram. In the code it is showing correct because 0 ka ultimate parent is 3. @takeUforward
@user-gs2hy8by9h
@user-gs2hy8by9h Ай бұрын
I cant solve it w/o seeing soln is it okay and normal ?
@NiteshKumar-xm3nq
@NiteshKumar-xm3nq 5 күн бұрын
do you uses mouse ?
@ApnaVlogs-tj7do
@ApnaVlogs-tj7do 9 ай бұрын
How can we come up to this type of solution of our own.
@rishabhranjan5162
@rishabhranjan5162 Ай бұрын
Damn this was tough
@DevanshuAugusty
@DevanshuAugusty Жыл бұрын
Time complexity?
@omop5922
@omop5922 Жыл бұрын
Is this doable in an interview
@santhoshreddy2603
@santhoshreddy2603 2 ай бұрын
bro i can solve dsa based problem only if i know the topics they belong(identifying the qn),bro how can i overcome this
@aryankumar3018
@aryankumar3018 Жыл бұрын
Understoood R
@averylazyandweirdhuman
@averylazyandweirdhuman Ай бұрын
Striver why don't we directly set the ultimate parent in the hashmap itself?
@sohammukherjee1392
@sohammukherjee1392 Жыл бұрын
Time complexity??
@krishanpratap3286
@krishanpratap3286 Жыл бұрын
isme instead of vectormergeMail[n] hum 2d vector of string le sakte hein kya?
@itsaryanb9316
@itsaryanb9316 Жыл бұрын
same question
@yt_deepx
@yt_deepx Жыл бұрын
yes you can, in that case you' ll use it as vector mergeMail(n);
@lakshsinghania
@lakshsinghania Жыл бұрын
yeah he is using array of vectors , u can use vector of vector in place of that
@steverogers1657
@steverogers1657 9 ай бұрын
inspiration for tier 3 college students
@Xp-Sam
@Xp-Sam 5 ай бұрын
The problem is , If it wasn't mentioned DSU anywhere, I wouldn't have thought anything apart from maps and sets.
@pratyakshhhhhhhhhhhhhhhhhhhhh
@pratyakshhhhhhhhhhhhhhhhhhhhh 7 ай бұрын
🎉🎉🎉
@valarmorghulis9244
@valarmorghulis9244 Жыл бұрын
It was HARD until Striver explaination
@vigneshreddy1213
@vigneshreddy1213 2 ай бұрын
Hey Striver at Present the number of test cases were increased to 1151 then the intution you suggested suceeded till 400 change test cases can you make another video for avoidance of tle;
@vigneshreddy1213
@vigneshreddy1213 2 ай бұрын
And The Issue was resolved by the gfg customer care they increased time limit for the problem. Any way thankyou for this content
@shreyarawatvlogs6920
@shreyarawatvlogs6920 6 ай бұрын
it is showing runtime error
@vishalbairagi5364
@vishalbairagi5364 20 күн бұрын
submit the solution to problem named accounts merge, merging details has some problem with test case 3 and test case 56
@Shengdanya
@Shengdanya Жыл бұрын
how are we supposed to code sooo much in such short time. If it comes in coding test, we have to solve other questions as well. Amazing explanation tho.
@The_Shubham_Soni
@The_Shubham_Soni 10 ай бұрын
wow
@nagasrikuncharapu3736
@nagasrikuncharapu3736 18 күн бұрын
understood but it is very hard
G-51. Number of Islands - II - Online Queries - DSU
25:32
take U forward
Рет қаралды 74 М.
Accounts Merge - Leetcode 721 - Python
17:13
NeetCodeIO
Рет қаралды 25 М.
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 126 МЛН
Maximum Connected group | GFG POTD 11th July 2024 | JAVA | C++
17:14
G-52. Making a Large Island - DSU
26:16
take U forward
Рет қаралды 68 М.
Why UK 🇬🇧 is going Bankrupt? : Detailed Economic Case Study
20:37
LeetCode 721. Accounts Merge [Coding Interview Solution Explained]
14:30
G-53. Most Stones Removed with Same Row or Column - DSU
23:51
take U forward
Рет қаралды 89 М.
ACCOUNTS MERGE | LEETCODE # 721 | PYTHON SOLUTION
23:04
Cracking FAANG
Рет қаралды 10 М.