Loading page…
Four problems about joining everything at the lowest cost. The move is that the cheapest link between two groups is always safe, so sort, merge groups with union-find, and turn every extra into a link.
Four interview problems sit on this street.