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