Python
Every implementation in Python on this site.
- Tier
- 1
- Toolchain
- Python 3.14, pytest 9
- Tests
- pytest
- Format
- ruff format
- Lint
- ruff
- Run the tests
python3 -m pytest
Implementations
- Binary search
Find a key in a sorted array. Compare the key with the middle item, and keep only the half that can hold the key.
intro - Insertion sort
Sort an array one item at a time. Take the next item and move it left until the item before it is not larger.
intro - Merge sort
Sort an array by divide and conquer. Sort each half, then merge the two sorted halves into one sorted array.
intro