Library of sorting algorithms with precise implementation and documentation.
- Bubble sort
- Counting sort
- Cycle sort
- Heap sort
- Insert sort
- Merge sort
- Pancake sort
- Quick sort
- Radix sort
- Selection sort
- Shell sort
- Sleep sort
pip install pysortlib
from pysortlib import insert_sort
array = [3, 5, 2, 1, 7, 4, 6]
insert_sort(array) # set a breakpoint and explore \o/
print(array)
pip install --user poetry
poetry config virtualenvs.in-project true
poety shell
poetry install
poetry update
pre-commit clean
pre-commit install --hook-type pre-commit
nox