Fade to Solo
Advanced Graphs

Connected Components (Union-Find)

10 MINMleetcode ↗

Problem

You're given n nodes labeled 0 to n-1 and a list of undirected edges between them. Count how many separate connected groups of nodes exist.

10 MIN00:00unlocks in 10:00
locked10:00 left