Well documented code with test cases. This started as a repo for my students to practice.
Just delete the code, re-write your solution and see if the tests pass. Enjoy 😊
Includes the following all in pure python 🐍:
- Common Data Structures 🧬
- Common Algorithms 🪜
- Problems to build your programming 💪
You can IPython as a REPL (in dependencies).
Please run the following to enable Git Hooks.
On commit this runs:
- testing
- linting
- formatting.
Please Install Packages before installing Git Hooks
$ ./install-hooks.sh
# pre-commit installed at .git/hooks/pre-commit
$ uv sync
# Installing dependencies from lock file
$ uv sync --upgrade
$ pre-commit autoupdate
# Updating dependencies
$ pre-commit run --all-files
# 20 files left unchanged
$ uvx ruff format
# 20 files left unchanged
$ uvx ruff check
# All checks passed!
$ pytest
# --> runs tests using pytest