MediumUnderstandGraphsopen_ended

In cycle detection for a directed graph using DFS, what do the three colors (0,1,2) represent?

Understand Tests comprehension and ability to explain concepts.

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 33+ more Graphs questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Graphs topic (Algorithms).

More Graphs Questions