Longest Cycle in a Graph (LeetCode 2360)
HardLeetCode 2360 · DFS · Google, Amazon +5 · 32:26Longest Cycle in a Graph · Leetcode - 2360 · DFS · Explanation ➕ Live Coding TrashMy notes
Sign in to keep private notes on every station, with video timestamps.
Pause here and write your approach in two lines. Compare it with MIK's when the video ends.
Sign in to write your approach →About this video
Video solution for LeetCode 2360 Longest Cycle in a Graph by codestorywithMIK: Graphs, Hard. Topics: Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort. Watch the explanation, then check the code and solve it on LeetCode.
- Difficulty
- hard
- Topics
- Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort, Kosaraju's Algorithm, Tarjan's SCC Algorithm
- Patterns
- DFS, Cycle Detection
- Chapter
- Graphs
- Duration
- 32:26
Related problems
- Graph Concepts & Qns - 4 (Microsoft, Amazon, Flipkart) : Detect Cycle in Undirected Graph using DFS
- Number of Provinces - (Google, Microsoft ) (LeetCode 547)
- Course Schedule (LeetCode 207)
- Course Schedule-II (LeetCode 210)
- Is Graph Bipartite ? (LeetCode 785)
- Detect Cycle using DSU - (Google, Microsoft)
- Strongly Connected Components
- Hierholzer's Algorithm (LeetCode 2097)