Data structures and algorithms for International Collegiate Programming Contest (ICPC) and other contests about competitive programming.
Some of codes are implemented by me, the most part in C++.
Link to PDF Version
- Segment Tree
- Fenwick Tree
- Sqrt Decomposition
- Disjoint Set Union
- Query Queue
- Query Stack
- Sparse Table
- Bridges
- Cutpoints
- Kosaraju
- LCA with Binary Lifting
- Euler Tour
- Eulerian Path
- Heavy-Light Decomposition - Edges
- Heavy-Light Decomposition - Nodes
- SPFA
- Maximum Flow
- Basic Math
- Modular Arithmetic
- Factorial
- Prime Number and Factorization
- Matrix
- Gauss Elimination
- Extended Euclidean