Interview Questions
Interview Guides
Experiences
Explore
Get started
Sign in
Interview Guides
All questions
/
Coding
Asked 3w ago
|
C3.ai
Directed Graph Cycle Detection
Medium
Asked at 45 companies
See all
Recursion
Graphs
Problem
Write a function to determine if a directed graph contains a cycle.
Question
Answer
Problem
Write a function to determine if a directed graph contains a cycle.
Your answer
Edit
Preview
Try one AI text evaluation on us
Get structured feedback, scored against a 4-axis rubric. Premium unlocks unlimited.
0 words
target ~200
Try a free preview
Stuck? Get a hint
Past attempts
Up next
Detect Cycle in Directed Graph
Medium
Detect Cycles in Graphs
Medium
Detect Cycle in Linked List
Medium
Next question
Directed Graph Cycle Detection | Dataford Interview Questions