All problems
› Cycle problems
Cycle problems
9 Cycle DSA practice problems on CampusCode, each with statement, examples and constraints.
984. Detect Cycle in Undirected Graph (DFS)
Easy
Graphs
985. Detect Cycle in Directed Graph (DFS)
Easy
Graphs
986. Detect Cycle in Undirected Graph Using BFS
Easy
Graphs
1010. Detect Cycle Using DSU
Easy
Graphs
1014. Check if a Directed Graph is a DAG
Easy
Graphs
1015. Course Schedule I — Can Finish All Courses
Easy
Graphs
1023. Redundant Connection
Easy
Graphs
1062. Find Eventual Safe States
Medium
Graphs
1077. Bellman-Ford — Detect Negative Weight Cycle
Hard
Graphs