Union-Find (Disjoint Set)
Main idea
Imagine you're invited to a party, and as soon as you arrive, the person who invited you introduces you to someone else at the event. You both shake hands and form a connection, sta...