home > domains > mli9502.github.io
Description: Some random notes...
leetcode 765 - Couples Holding Hands
A Union-Find solution
We first assign groups to elements in the array.