Quiz: Cycle Detection

Test your understanding

Check Your Understanding

If prerequisites contain a cycle (A needs B, B needs C, C needs A), what should Course Schedule return?

  1. A.Any valid ordering that ignores the cycle
  2. B.True - cycles are allowed
  3. C.The length of the cycle
  4. D.False - no valid course order exists
Start the roadmap to answer the quizzes and solve the challenges