Level 4 · Advanced
Union-find
About 10 steps, from the first idea to a mastery test.
Stage 0Groups that merge4 stepsFree
- 1Are they in the same group?9 min
- 2Count the groups7 min
- 3Largest group8 min
- 4Spotting a redundant link8 min
Stage 1Using groups4 stepsFree
- 1Union by size10 min
- 2Path compression10 min
- 3Which cable can be removed?9 min
- 4Fewest bridges to connect every island8 min
Stage 2Mastery2 stepsFree