Make your own leetcode problems
Project description
Yeetcode
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.
Quick start
User
- 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
.pyfile - Run against your test cases:
yeetcode run problem.yaml solution.py
Developer
Clone this repo and install in development mode with test dependencies:
python -m pip install -e .[tests]
Roadmap
- 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yeetcode-0.3.0.tar.gz.
File metadata
- Download URL: yeetcode-0.3.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b41e7488cd569214d8a47720a3f31818296c0e17462d9c402c86b5506cc0f5c
|
|
| MD5 |
2853a51083864296262e907f8e7c5d52
|
|
| BLAKE2b-256 |
953d5d289dba17c3edf101ac5d334179628e488d5f6c6ab0a761f1b364d3895e
|
File details
Details for the file yeetcode-0.3.0-py3-none-any.whl.
File metadata
- Download URL: yeetcode-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9d788e8947f13d21d517311e47df9a92a03f343136ce1d49c02be6be132edc4
|
|
| MD5 |
1eb7365f4f2179db3389d5d1f69d2c64
|
|
| BLAKE2b-256 |
ae23133abbbd04c75169ba0c8c4fe4da0706919ff756a5a100dee69429a5706f
|