Hi Gophers!
Here's the Union Find and DFS solution (with visualisation + live coding) for Leetcode 924, Minimize Malware Spread.
0:00 Question
1:58 Intuition
2:33 Union Find Solution
4:04 Union Find Algorithm
10:13 Union Find Optimization
14:28 Union Find Code
17:56 DFS Code
Leetcode Jump Game III (BFS + DFS) solution:
https://youtu.be/yaju3EpUzew
Explore other playlists here:
1. Top 150 leetcode questions:
https://www.youtube.com/playlist?list=PL-zQGDJG8D5R0Ng6WGaN-U9FORpE9EdGq
2. Hard leetcode questions:
https://www.youtube.com/playlist?list=PL-zQGDJG8D5Td4U9nzqK_Wanwt2g9gMRN
3. Top Common Graphs Interview questions:
https://www.youtube.com/playlist?list=PL-zQGDJG8D5QVBtyeaDyqNz99Vv0Clpjr
All the best for coding interviews! :)
#unionfind #depthfirstsearch #leetcode #codinginterview
#golang #golangtutorial #golanginterview