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
@prem2632 жыл бұрын
Hi, During example explanation, you have mentioned to update parent of u or parent of v depending on rank of parent of u and v. but in code you are updating parent[ulp_u] which is parent of ultimate parent of u at 29:19. Can you please clarify why is this difference.
@cartube6219 Жыл бұрын
java ka code likh k kya hi matlab , jab aap samjhate nhi , jesaa c++ ka code likhte ho vesaa live java ka likha rao app plz ,, c++ ka code side me chika diya karo , c++ community bahut badi hai , woh help leke manage kr lenge ,, but java walo ka kya ??
@abhikantkumar8833 Жыл бұрын
@@cartube6219 bro both java and c++ are almost same , there are only some minor syntax difference.
@sudhanshushekhar4222 Жыл бұрын
Understood
@abhinavgupta88396 ай бұрын
HIndi wala chiye solutions
@crazyduniya128 Жыл бұрын
Me looking here nd there while video is playing, then suddenly I looked at the striver's face and found that he is more serious about my career then I myself. This motivated me and my focus boosted. Thank you striver. 🙏😌
@YashMezzalaАй бұрын
cringe
@humanity7880Ай бұрын
@@YashMezzala Okay Dank boi
@sohailshaik9 Жыл бұрын
Watching this video after watching Abdul Bari sir's video. Both are legends in their own way. Great learning ❤️
@yashkagi5399 Жыл бұрын
i used to watch abdul bari's video for sleeping as his voice is very monotonous
@vm1662 Жыл бұрын
Same! I just watched Abdul Bari sir's video and now watching Striver. These two are blessings to CS students.
@movieskingdom1748 Жыл бұрын
Khud se bhi karle bhai..sirf video dekhne se kuch ni hota.
@shubhamkumar-hx1fb8 ай бұрын
@@yashkagi5399😂
@shubhamkumar-hx1fb8 ай бұрын
@@movieskingdom1748 khud se questions kiye jate Hain algos ke to videos hi dekhne padte hain 😂
@valarmorghulis9244 Жыл бұрын
This was the toughest topic in Graph. So in case someone finds it difficult to understand while watching it for the first time. I suggest you to watch the next few videos and come back and do some brainstorming and then again see this video. I tell you this because it worked for me. And clearly no other videos have this depth explanation on KZbin. You will know how beautifully Striver has explained once the working of Disjoint Sets starts ticking your mind. Just watch some of the next videos and then come back and watch this.
@lavanya_m017 ай бұрын
yes you're right, after watching the next few videos, it makes more sense. I also watched Tushar roy's video on Disjoint sets, it helped too :)
@RahulPatel-hr4qe3 ай бұрын
Yes ! Same happend with me in BFS and DFS , Intitally overwhelmed by it , came back after few days and back got it within one chancce
@tiyashaghosh9933 Жыл бұрын
The more I see his videos, his work, the more I respect him.
@cool.kunalsikri Жыл бұрын
In college, i never did coding even though i was in Cse branch. Because i never liked competetive programming. But after coming into tech industry, i started liking to code and solve problems. So i have started learning various ds and i must say the content u have created is awesome. I love it .Awesome explanations . Thanks brother!
@sameerakhatoon9508 Жыл бұрын
can you please lmk w/ which job you started?
@varunaggarwal7126 Жыл бұрын
same with me.
@musharrafhussain130 Жыл бұрын
systumm!
@rollercoaster9719 Жыл бұрын
now the biggest qn is, how the hell did u get a job if u never did coding in college
@shibainu75008 ай бұрын
@@rollercoaster9719 Aisa hi hota tha
@AbhinavSingh-rl9zr4 ай бұрын
wow literally blown my mind such depth of covering each point with intutition..,.massive amount of practice and hardwork is behind all this..
@KeigoEdits3 ай бұрын
25:29 is such a wholesome reaction of striver lol, like a relative is giving you some money before leaving
@shubhiagarwal40477 ай бұрын
Understood. Striver Sir, this is great to launch dp and graph series. No teacher can do better dry run of the logic like you.
@arunimachakraborty11757 ай бұрын
This concept was quite complicated and you, as always, made it look so easy. Thanks a lot!
@animeshmondal95692 жыл бұрын
UnderStood Sir🔥🔥 No one can teach like you 😎😎..
@SoniaStalance Жыл бұрын
Wow! That was one of the best tutorials I've ever seen.
@jayyanthmalepati7584 Жыл бұрын
I did understood the class partially not fully but striver's videos have a good content .literally he is my trainer
@kishorevb83312 ай бұрын
Knowing about the dynamic network connectivity problem really helps out as it is essentially the disjoint set algo is the same as weighted union with path compression
@AnushkaGupta-x6w9 күн бұрын
This was the topic due to which I once got rejected at Google, And Now I can proudly say that this is the topic that is the reason that I got an offer from UBER 🎉🎉. THANKS STRIVER❤ Was a long journey but it was all worth it.
@sanyamjawlia Жыл бұрын
Please bring such more series of other topics as well. These series are too amazing and easy to understand. Loved your way of teaching as well.
@ashishkumaryadav5252 Жыл бұрын
Exceptional content on KZbin. Hats Off
@shubhiagarwal40477 ай бұрын
Not a single dislike shows, a man with no hatred only respect.
@sayakghosh51042 жыл бұрын
One of the toughest topics in DSA, I've learned till now, DP was much easier. 🙂🙂🙂🙂🙂🙂
@KeshavSingh-yu9jw2 жыл бұрын
Maybe you learned about disjoint joint first time today, It all comes down to practice. After some practice you will find it easier(that's the case with me). So lets keep grinding.
hey it will be easy once u solve some que with this / btw which year ?
@sayakghosh51042 жыл бұрын
@@krishanpratap3286 3rd Year. 🙂
@KeshavSingh-yu9jw2 жыл бұрын
@@sayakghosh5104 I am in 3rd year as well.
@AbhishekKumar-td5zuАй бұрын
Best explanation of DisJointSet you will ever find ❤
@aparnakanchi Жыл бұрын
Understood . Great to have people like you
@anubhavjasoria43352 жыл бұрын
Bhai love from odisha ….i have been following you since last year and i feel so confident about the topics that I learned from you ….. “ KEI DINA DEKHA HABA “ - my goal 😂😂
@krishanpratap32862 жыл бұрын
which year u at?
@ashishdhal4614 Жыл бұрын
Bhai kou college
@mihirsaini592 Жыл бұрын
Watched it again after 5 months, can't thank you enough my man
@U2011-n7w Жыл бұрын
your graph series is best on youtube
@mordor25949 ай бұрын
This is the first topic I had to refer some other resource to understand after your video. I love your content but this was the only time I had to go to some other place to understand the concept.
@nishigandhagirishdandekar11312 ай бұрын
Very good explanation! I liked the union by size better than union by rank. It's more intuitive like you said in the video.
@vishalbindal50662 жыл бұрын
Through this video i am able to understand dsu properly before this i go through various videos and articles but don't get it like after this video thanks bhaiya 🙂
@g51661 Жыл бұрын
I wish I could hit the like button a thousand times! Thank you, Striver
@741ibrahim22 жыл бұрын
Consistency is amazing ✨✨✨✨❤️🔥
@vishious14 Жыл бұрын
THIS WAS THE BEST EXPLANATION OF DISJOINT SET. OMG !!!!!!!
@kritikarawat2180 Жыл бұрын
Impressive man.I understood all concepts told in this video.
@21BD1A05R6 ай бұрын
I find union by rank more intuitive because, without path compression ( i,e, if findPar is not called for any of the nodes ) we can assume rank as the depth of the tree. As Striver mentioned, attaching a smaller depth tree to a larger depth tree is more efficient, and this makes logical sense. In contrast, union by size doesn't provide a clear idea about the tree's depth. When using union by size, we are assuming that a larger size corresponds to a greater depth, which isn't necessarily true in all cases. I would like you to comment your intuition .
@googleit2490 Жыл бұрын
Understood :) Have to code Sep'3, 2023 05:20 pm Done at Sep'4,2023 11:30 pm
@mdsohrabakhtaremam9555 Жыл бұрын
great explanation help me to understand within few minutes at X2 speed, Instead of searching it over internet and spending lot of time.
@cinime2 жыл бұрын
Understood! Such an awesome explanation as always, thank you very much!!
@uavishal777 Жыл бұрын
Striver bhaiya you are legend for us🔥🔥.i wish that anytime i could meet you.
@sarankumaar6009 Жыл бұрын
understood. best best best explanation. no one can match this ever
@prashantkumar-oz2in Жыл бұрын
Now this is quality content.. ❤❤❤
@surabhilakhotia3116 күн бұрын
Thank you sooo much for such detailed and simplified explanation :)
@shitizgoel502711 ай бұрын
Very nice explanation for union-find algorithm. Thank you very much bhaiya! 🙂
@utkarshsingh7197 Жыл бұрын
Teaching with such a fluency.....Big Fan Sir!!
@evilpollination19166 ай бұрын
As always amazing video. Understood everything but had to watch twice.
@suryasingh2563 Жыл бұрын
UnderStood bhaiya...thankYOu soo much
@Stellar_7x2 ай бұрын
In our university they only taught algorithms of krushkals and prims and dijkstras and in psudo code they just wrote union and gave 0 knowledge about union ...... THEY THINK THAT WE'RE THE GENIUS THAT WE FIGURE IT OUT ON OUR OWN LOL ! , aap knowledge to dete hi ho sath mai degree bhi dene lago ......
@AlokSingh-jw8fr2 жыл бұрын
Understood everything you taught in video.
@Malmo3082 ай бұрын
Very nice video! Everything was explained clearly. Thank you very much!
@oqant04242 жыл бұрын
No one can teach like you!
@AbhilashKumar-x2k7 ай бұрын
What an explanation. Hats off🫡
@Dontpushyour_luck Жыл бұрын
This was such a nice video. Thank you for teaching all this for free!
@viraag86676 ай бұрын
You made this topic look very easy thanks
@Ballistic_Bytes11 ай бұрын
Brilliant explanation. Loved it.
@raghavmanish242 ай бұрын
thanku striver for making such difficult topic so interesting
@ddevarapaga513412 күн бұрын
Best video for disjoint set.
@vijayarana2087 Жыл бұрын
Thanks for creating this video, wonderful explanation
@vigupta-uq1pn Жыл бұрын
goldmine for DSA🔥🔥
@rohitn6333 Жыл бұрын
Thanks for this wonderful explanation sir
@sohammukherjee1392 Жыл бұрын
24:16 that finding parent technique via backtracking was nearly similar to print shortest path using Dijkstra's algorithm where we're using that parent array
@itspurelypassionate Жыл бұрын
Thank you! This is is the best explanation of Disjoint Set I've come across. By the way I have a request for one other video. Can you please upload a video explaining leetcode 992 problem. I tried to understand through other channels but I didn't get it. The problem asks us to find the number of subarrays with exact K different integers. Thanks!
@shantipriya37010 ай бұрын
just wow.. superb explanation..
@augustinradjou39099 ай бұрын
Astonishing work!
@paragroy535910 ай бұрын
Thanks a lot for making such videos it is really helpful. Great Content
@kb-ru4md7 ай бұрын
Best videos dp and graph🙏
@shauryatomer10583 ай бұрын
As always great video. Thanks for the awesome content
@vaishnavimore4860 Жыл бұрын
Great explanation🚀 understood!!
@vikashkumarvlogsnitj Жыл бұрын
impressed , subscribed at first video itself.
@sobujkhan260211 ай бұрын
this is amazing application really very nice video
@udaytewary3809 Жыл бұрын
Understood bhaiya 🙏❤️
@reshusingh3558 Жыл бұрын
Understood sir ,thankyou for your support.
@rishabh72154 ай бұрын
Finding union by size to be more intuitive so I guess I'll follow that over union by rank
@saniyapathan89684 ай бұрын
You are the best🙌
@nazibur175Ай бұрын
Very good explanation!
@AyushEditz-hs6pf2 ай бұрын
damn , you made it look so easy. Thanks Striver
@amitp277 Жыл бұрын
What a detailed explanation 👏👏
@achyutpal6225 Жыл бұрын
Understood very well. Thank you 😄😄😄😄😄😄,
@Qwerty-yi3js3 ай бұрын
I think I need to watch it again and again...to get a hold of it...
@ebukaegbunam871610 ай бұрын
ultimate teacher
@kasamadhu3509 Жыл бұрын
union by rank , union by size are optimal solutions to union.
@TarunKumarSaraswatАй бұрын
thanks, understood in 2nd time
@chirag.30825 ай бұрын
though he expertly explained both by and by size i feel like he should have led with union by size, its a bit simpler and more intuitive especially for beginners
@virgarg9653 Жыл бұрын
Understood Very good bro keep it up .....
@amanbhadani88402 жыл бұрын
Striver Bhaiya op 🥳
@SachinKumar-zs6hm5 ай бұрын
Understood! Thanks a lot Striver.
@m.afnan2018 Жыл бұрын
Understood, But I am going to try it by myself to get more clear picture.
@anandchauhan1868 Жыл бұрын
Thanks for teaching
@arnavumarkar8259 Жыл бұрын
Very well explained. Thanks
@abhishekkuntare46402 жыл бұрын
Understood all the stuffs ❤❤
@ritwikamahapatra14327 ай бұрын
what an explanation! THANKYOU
@UECAshutoshKumar11 ай бұрын
Thank you sir 😊😁
@shubhrabrahmachari76496 ай бұрын
you inspired me today . Thank you
@sanchitsrivastav453 Жыл бұрын
now I am satisfied with the logic and code
@praneethaimandi17903 ай бұрын
amazing explanation.thank u
@armaan4529Ай бұрын
watched 2nd time and understood everything
@AnamikaMishra-c7b Жыл бұрын
amazingly explained
@stith_pragya11 ай бұрын
Thank You So Much for this wonderful video...................🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@rushidesai283610 ай бұрын
Very well explained!
@vaibhavsharmaiiitu9319 Жыл бұрын
Amazing video loved it
@avocode14872 жыл бұрын
For me striver has become youtube n google both, bcoz if I want to learn any concept whether it be ez or tough I come to TUF.