← Amazon questions

Find cycle edge in tree

Filed under Amazon

Given a graph that is a tree with one additional edge added (creating a cycle, commonly known as Redundant Connection), find the edge that can be removed so that the resulting graph is a tree of N…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.