Skip to content
Avio Lines
← Graphs lineD17Stop 69 of 145

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 Trash
MIK's code LeetCode ↗ YouTube ↗

My notes

Sign in to keep private notes on every station, with video timestamps.

Try it before watching

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