Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Cycle Detection in Directed Graphs

Medium
CodingdfsbfsGraphsAsked 1 times

Problem

Write a function to detect cycles in a directed graph, explaining your choice of traversal.

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Shipmonk Software Engineer Interview QuestionsShipmonk Interview Questions
Next questions
FukuCycle Detection in Directed GraphsMediumYahooCycle Detection in Directed GraphsMediumMatch groupCycle Detection in Directed GraphsHard
0 / ~200 words