Swim in Rising Water | Leetcode 778 | Using Union Find Approach | Problem on MST

  Рет қаралды 4,280

Riddhi Dutta

Riddhi Dutta

Күн бұрын

Пікірлер: 16
@JRK_RIDES
@JRK_RIDES Жыл бұрын
I solved this problem using Dijkstra's fist and then also found a simple DFS/Binary Search solution as well. Both were much more straight forward. However, it was really interesting to see this third approach as well. I always try to find multiple approaches to the same problem. Great video.
@viber1430
@viber1430 2 ай бұрын
provided when we have Unique nodes across the matrix, Union find is possible I guess. The first two approaches are more robust
@arghya_0802
@arghya_0802 2 жыл бұрын
Awesome video with yet another very important question. Riddhi sir is on fire right now🔥🔥. Despite working full-time and giving live seminars, he is doing so much for us for *Free* is very commendable. Also #Day5 is done!!!
@rite2riddhi
@rite2riddhi 2 жыл бұрын
Thank you arghya for the kind words
@KishankumarPatel
@KishankumarPatel 2 жыл бұрын
It would be great if you try to solve using a smaller grid size, it would have been more faster and more easy for audience as well.
@jyotirmoyroy4323
@jyotirmoyroy4323 2 жыл бұрын
Explanation +++ ❤️🙌
@rite2riddhi
@rite2riddhi 2 жыл бұрын
thank you
@KishankumarPatel
@KishankumarPatel 2 жыл бұрын
A simple solution is just use binary search and dfs
@VishalSingh-gm3qj
@VishalSingh-gm3qj 2 жыл бұрын
Sir ki videos flower ni fire 🔥 hai 😎
@ganeshkamath89
@ganeshkamath89 2 жыл бұрын
I am not able to figure out how to convert that Collections.sort line to C++. Need help. Explanation was awesome :). Thank you.
@rite2riddhi
@rite2riddhi 2 жыл бұрын
Thanks. Lets connect on insta. Need some more context. For now search c++ custom sort or c++ sorting using custom function
@ganeshkamath89
@ganeshkamath89 2 жыл бұрын
@@rite2riddhi Thanks.
@sayansadhukhan9692
@sayansadhukhan9692 2 жыл бұрын
There is nothing like (0,5) there, for 5 the coordinate will be (1,4)
@mdhaidarparwez968
@mdhaidarparwez968 Жыл бұрын
Everyone cannot have explanation skills like striver and love Babbar.
@we_crood
@we_crood Жыл бұрын
it would be great if you can give better audio quality.
@aman-hs2ht
@aman-hs2ht Жыл бұрын
bhai hindi me hi smja deta
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 299 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 2,4 МЛН
How I learned to code in 3 months (and got several offers)
12:54
Coding Jesus
Рет қаралды 210 М.
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 192 М.
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 63 М.
This Algorithm is 1,606,240% FASTER
13:31
ThePrimeagen
Рет қаралды 860 М.
Startup vs. FAANG: My CONTROVERSIAL Choice! Software Engineer!
14:00
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН