Premium LeetCode practice environment with modern Python tooling, beautiful tree visualizations, and comprehensive testing.
- Template-driven development - Consistent structure for every problem
- Beautiful tree visualizations - Pretty-printed binary trees with anytree
- Rich test logging -
@logged_testdecorator with detailed tracebacks - One-command testing -
make test-question QUESTION=problem_name - Code quality - black, isort, ruff, mypy integration
- Modern Python - PEP 585/604 syntax with full type hints
# Run existing problems
make q-test QUESTION=two_sum
make q-test QUESTION=invert_binary_tree
# Run all tests
make testAdding new problems: Use an LLM agent (rules in .amazonq/rules/development-rules.md) to automatically create new problems from copied LeetCode problem text using the template structure.
make q-test QUESTION=two_sum # Test specific problem
make test # Run all tests
make lint # Code quality checks
make q-gen QUESTION=new_prob # Generate new problem# TreeNode visualization
4
βββ 2
β βββ 1
β βββ 3
βββ 7
βββ 6
βββ 9
# Test logging
2024-01-01 10:00:00 | SUCCESS | Got result: [4,7,2,9,6,3,1]
2024-01-01 10:00:00 | DEBUG | Test passed! β¨
Perfect for interview preparation with professional-grade tooling and beautiful visualizations.