Repository of algorithms / code snippets commonly used in CP, mostly in C++ and Python. Haven't done documentation of solved problems in awhile, but those can be found in Archives.
The aim is to create a reliable, bug free library of code for saving time in CP contests. Also includes reference code for some (simpler) algorithms.
Contains a collection of libraries formatted in VSCode snippets. Does not contain reference code.
- Merge Sort
- Quicksort w DNF partitioning
- Combinatorics
- Prime Counting
- Prime factorization
- Tortoise hare cycle finding
- Kadane's Algorithm
- Longest Increasing Subsequence (with backtrack)
- 0/1 Knapsack (with backtrack)
- Coin Change
- Travelling Salesman Problem