lcpy gen -n <number>.
Union-Find in Python with Tests
All 54 Union-Find LeetCode problems with tested Python solutions.
Union-Find holds 54 problems (33 Medium, 21 Hard).
Generate any of them into the current directory with
lcpy gen -n <number>.
Last modified on September 7, 2026