Skip to content

qianxyz/yeetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • Prettify user messages
  • Docstring field describing problem
  • Problem config documentation
  • Inplace problems with no return

About

Make your own leetcode problems

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages