Skip to main content

Make your own leetcode problems

Project description

Yeetcode

PyPI version CI status

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

  1. Create and activate a virtual environment (highly recommended)
  2. Upgrade pip and install yeetcode:
python -m pip install --upgrade pip
python -m pip install yeetcode
  1. Create a problem configuration
  2. Generate a Python solution template:
yeetcode template problem.yaml > solution.py
  1. Work out your solutions in the .py file
  2. 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
  • Subcommand to list problems and add new ones
  • Multiple methods test routine
  • CI checking the problem set
  • Data structures serde
  • Prettify user messages

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

yeetcode-0.1.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

yeetcode-0.1.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file yeetcode-0.1.2.tar.gz.

File metadata

  • Download URL: yeetcode-0.1.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for yeetcode-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5bd06086a3f817ec021f978db3e1749567c8128f426d719a885981788d2c6c6a
MD5 caf4782ebb6b2c9ef40279acdbc097f5
BLAKE2b-256 ea82729863f83ebf6662ac2d41ad64f0d23f58933b467fe25bb9156a2fe76869

See more details on using hashes here.

File details

Details for the file yeetcode-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: yeetcode-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for yeetcode-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 74b7735a66da4579fdb89bfbb5961663688a35bedb48652b4ac0ebf1dcfffcc3
MD5 61414a76aea4d679ba2690e574863b5b
BLAKE2b-256 6b3328a38e2bd280513fe8d61fdc06690627ca3f4298bd0d682d4ce8c47e6f9a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page