lcpy gen -n <number>.
Tree in Python with Tests
All 149 Tree LeetCode problems with tested Python solutions.
Tree holds 149 problems (35 Easy, 101 Medium, 13 Hard).
Generate any of them into the current directory with
lcpy gen -n <number>.
Last modified on September 7, 2026