Competitive Programming Templates
Contest Templates
My template C++
Graph
Graph Traversing (DFS, BFS)
Dijkstra
Floyd
Prim
Binary Search Tree
Centroid Decomposition
Lowest Common Ancestor
Lowest Common Ancestor Weighted
Tarjan
Bellman Ford
Kuhn
Data Structures
Segment Tree
Lazy Propagation
Persistent Segment Tree
Segment Tree 2D
Fenwick Tree
Fenwick Tree 2D
Fenwick Tree Range
Sparse Table
Disjoint Set Union
Heavy Light Decomposition
Ordered Set
Trie
Binary Trie
Monotonic Stacks
Monotonic Queue
Implicit SplayTree
SplayTree
Range Query Algorithms
SQRT Decomposition
SQRT Decomposition + Mo's Algorithm
SQRT Decomposition + Mo's Algorithm on Tree
Hashing
Hash Interval
Hashed Deque
Hashing Segment Tree
Dynamic Programming
Convex Hull Trick
Kadane
Prefix Sum 2D
Partial Sum 2D
Manacher
String Algorithm
KMP
Number Theory
Sieve of Eratosthenes
Factors
Miller Robin
Math & Computational Geometry
Convex Hull
Math Template
Matrix Power
Power Inverse
Points Template
Data types Templates
Mod Int
Bit Int
Compression Algorithms
Coordinates Compression
Additional Files
Template to Print
CP-Snippets
Stress Testing Template