category

Union–Find

Disjoint-set structures: connectivity, cycles, and grouping.

Redundant Connectioninteractive

Find the edge that closes a cycle in a tree-plus-one-edge graph.

Medium