OktaCoding·50 minMembers
Dependency Cycle Detection (Deadlock)
Members only
Resources depend on each other; a dependency cycle means deadlock. Given a list of lists where L[i] are the resources that resource i depends on, return True if any cycle exists, else False.
SWE
graph
dfs
cycle-detection
medium
Frequency
Single report
Last asked
2025-11-05
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
