DrawCode

Path Compression

During find, point every node on the path directly to the root for near-constant amortized time.

Browse free without an account. Sign in to save progress, sync likes, and open your canvas workspace.