Why leetcode, if you can write your own?
Yeetcode is a leetcode imitation, where you can create your own declarative problem specifications with YAML, auto-generate a solution template in Python, fill in your solution, then run against your own test cases.
- Create and activate a virtual environment (highly recommended)
- Upgrade pip and install yeetcode:
python -m pip install --upgrade pip
python -m pip install yeetcode
- Create a problem configuration
- Generate a Python solution template:
yeetcode template problem.yaml > solution.py
- Work out your solutions in the
.py
file - Run against your test cases:
yeetcode run problem.yaml solution.py
Clone this repo and install in development mode with test dependencies:
python -m pip install -e .[tests]
- Create a minimal proof of concept
- Solution files auto-generation
- Multiple methods test routine
- Data structure: singly linked list
- Data structure: binary tree
- Prettify user messages
- Docstring field describing problem
- Problem config documentation
- Inplace problems with no return