Some algorithms and structs for competitive programming contests
Matrix
- Matrix(int _rows, int _columns): Construct matrix.
- bool inside(int row, int column): check if this point is inside
- vector& operator [] (int row): Access specific row
- Union-Find
- Max/min sparse table
- Max/min cartesian tree