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
  • Multiple methods test routine
  • Data structure: singly linked list
  • Data structure: binary tree
  • CI checking the problem set
  • 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.2.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

yeetcode-0.2.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yeetcode-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a64751919ced45b9a6b706945a76970eb683b4894862433799474605bc277462
MD5 0faed13818d8b56ac978a5d621700f2a
BLAKE2b-256 1dad3db5844ddc18d369f1162850238b779366f2b1616bf643661ecc1bda6fb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yeetcode-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 162beb2cc81720fd8b3a4ac533b54a8e14ded92eb24f01311a4bcea2d8363ae3
MD5 12b271edfb5294a818cb9075f40d4132
BLAKE2b-256 582f28a63a3d6c1c2211433ede67275177b9bcc6f50c1fc3999a6b53c8e4a996

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