Detect Cycle using DSU - (Google, Microsoft) | Graph Concepts & Qns - 20 | Explanation+Coding

Subscribers:
92,300
Published on ● Video Link: https://www.youtube.com/watch?v=0X0lEtTkk-8



Duration: 17:42
521 views
33


Hi Everyone, this is the 20th video of our Playlist "Graph Concepts & Qns".
In video-18, and video-19, we understood a very important topic in Graph "Disjoint Set Union (DSU)"
Now, it's time to solve Qn on DSU and get a good grip on it.
So, today we will solve a popular Qn "Detect Cycle using DSU".


Problem Name : Detect Cycle using DSU
Topic : Graph
Video : 20
Company Tags : Google, Microsoft
GfG Link : https://practice.geeksforgeeks.org/problems/detect-cycle-using-dsu/1
My Code on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Graph/Disjoint%20Set/Detect%20Cycle%20using%20DSU.cpp


My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
My Graph Playlist : https://www.youtube.com/watch?v=5JGiZnr6B5w&list=PLpIkg8OmuX-LZB9jYzbbZchk277H5CbdY
Subscribe to my channel : https://www.youtube.com/@codestorywithMIK


╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview #interviewtips
#interviewpreparation #interview_ds_algo #hinglish




Other Videos By codestorywithMIK


2023-02-26Construct Quad Tree (Leetcode - 427) - (Google) : Explanation ➕ Live Coding
2023-01-30Promise from a coder to coder 💪👩🏻‍💻👨🏻‍💻
2023-01-29LFU Cache - (Microsoft) : Explanation➕Live Coding
2023-01-29LRU Cache - (Adobe, Microsoft, Amazon, Twitch...):Explanation➕Live Coding
2023-01-27Data Stream as Disjoint Intervals - (AMAZON) : Explanation ➕ Live Coding
2023-01-27Concatenated Words - (META) : Explanation ➕ Live Coding
2023-01-26Cheapest Flights Within K Stops | GOOGLE | BFS | Explanation ➕ Live Coding
2023-01-25Find Closest Node to Given Two Nodes | BFS & DFS | Explanation ➕ Live Coding
2023-01-24Snakes and Ladders - (Microsoft, Amazon, Adobe..) : Explanation ➕ Live Coding
2023-01-22Find the Town Judge - (Microsoft, Amazon, Uber) : Explanation ➕ Live Coding
2023-01-22Detect Cycle using DSU - (Google, Microsoft) | Graph Concepts & Qns - 20 | Explanation+Coding
2023-01-22Palindrome Partitioning - (Google, Microsoft, Meta) (Khaandani Template) : Explanation ➕ Live Coding
2023-01-21Restore IP Addresses - (META) : Explanation ➕ Live Coding
2023-01-20Non-decreasing Subsequences -(Khaandani Backtracking Template) : Explanation ➕ Live Coding
2023-01-19Subarray Sums Divisible by K - (Microsoft, Amazon, Paytm) : Explanation ➕ Live Coding
2023-01-17Maximum Sum Circular Subarray (Microsoft, Amazon) : Explanation ➕ Live Coding
2023-01-17Flip String to Monotone Increasing - (GOOGLE) | Optimal | Explanation ➕ Live Coding
2023-01-17Flip String to Monotone Increasing - (GOOGLE) | Recursion+Memo | Explanation ➕ Live Coding
2023-01-16Insert Interval (Google, Twitter, Microsoft, Apple, Amazon) : Explanation ➕ Live Coding
2023-01-15Number of Good Paths | GOOGLE | DSU | Explanation ➕ Live Coding
2023-01-15Disjoint Set Union By Rank and Path Compression - | DSU | Graph Concepts & Qns -19| Explanation+Code