solulubeta
Sign in
NeetCode 150 / Graphs
11.10 · Problem

Redundant Connection

Medium Union-Find 1 video LC 684 Pro

This problem is part of solulu Pro

A tree with n nodes (labelled 1 to n) had one extra edge added, creating exactly one cycle. Given the edges, return an edge that can be removed so the result is a tree again. If there are several, return the one that…

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 89 of 150 · updated 2026-10-12