Challenge 3: Detect Cycle in Graph
This lesson provides another coding challenge on graphs. You'll implement a cool function that detects loops!
Problem statement
The concept of loops or cycles is very common in graph theory. A cycle exists when you traverse the graph and come upon a vertex that has already been visited.
Note: Your solution should work for both ...
Access this course and 1400+ top-rated courses and projects.