-
2D Segment Tree
-
Segment Tree (Dynamic)
-
Segment Tree Point Update Range Query (Bottom Up)
-
Segment Tree Point Update Range Query (Top Down)
-
Segment Tree Range Update Range Query
-
Sqrt Decomposition
- Binary knapsack
- Edit distance
- Knapsack
- Longest increasing subsequence
- Money sum
- SOS
- Steiner tree
- Travelling salesman problem
- int128t stream
- Binary to gray
- Get permutation cycles
- Max & min check (binary search)
- Merge Interals
- Mo's algorithm
- All i know about 2D stuff
- Angle between three points
- Area of union of rectangles
- Area: polygon
- Check if point belongs to line
- Check if point belongs to segment
- Check if point is inside polygon
- Convex hull
- Cross product between points
- Define line from two points
- Determinant
- Distance: point to point
- Halfplane intersection
- Lattice points
- Left of polygon cut
- Perimeter: polygon
- Point
- Polygon (regular): apothem
- Polygon (regular): circumradius
- Polygon: check if is convex
- Rectangle intersection
- template
-
Heavy Light Decomposition (Point Update)
- Arithmetic progression sum
- Binomial mod
- Binomial
- Chinese remainder theorem
- Derangement
- Euler phi (in range)
- Euler phi
- Extended Euclidian algorithm
- FFT convolution and exponentiation
- Factorial factorization
- Factorization (Pollard's rho)
- Factorization
- Fast pow
- Find linear recurrence (Berlekamp Massey)
- Find multiplicatinve inverse
- Floor division
- GCD
- Gauss XOR
- Guess K th (Berlekamp Massey)
- Integer partition
- LCM
- Linear diophantine equation (count)
- Linear diophantine equation (solve)
- Linear recurrence
- List N elements choose K
- List primes (Sieve of Eratosthenes)
- Matrix exponentiation
- NTT convolution and exponentiation (2 mods)
- NTT convolution and exponentiation
- Polynomial Taylor Shift
- Polyominoes
- fibonacci mod m period
- polynomial composition
-
Z Function