What is a cycle in a graph, and why is cycle detection important?
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Define a cycle in directed and undirected graphs and explain why software needs to detect them. Tests a precise definition of the term and the ability to connect it to concrete failures in real systems.