Quiz: Detecting Redundant Edge

Test your understanding

Check Your Understanding

When processing edge [u, v], how do you know this edge creates a cycle?

  1. A.If u or v has more than 2 neighbors
  2. B.If u == v (self-loop)
  3. C.If the edge appears twice in the input
  4. D.If find(u) == find(v) before the union
Start the roadmap to answer the quizzes and solve the challenges