Collection of widely used algorithms in competitive programming contests Algorithms included are:
This readme file is outdated, Algorithms list below is changed.
-
SSSP algorithms:
- Dijkstra.
-
APSP Algorithms:
- Floyd Warshall.
-
MST Algorithms:
- Kruskal.
- Grey Code.
- Fibonacci O(log n).
- Fast Power.
- Binomial Coefficient.
- Matrix Multiplication & Matrix Power.
- Modular Inverse.
- Sparse Table.
- Disjoint Set (Union-Find).
- Bitmasks.
- Modified Stack & Queue - find min|max in O(1).
- KMP.
- Trie.
- Mo's Algorithm.
- Maximum Sub-Array Sum(Kadane's Algorithm).