Algorithm Template for Leetcoder user ManuShi98, Codeforces user KihoMaaya and ManuShi.
Interval Query
Fenwick(Binary Index Tree)
1 | // Index should start from 1, size should be least 2 larger than real size. |
Segment Tree with lazy strategy
1 | template<class T> |
Graph
Number Theory
Modular
1 | // This template is based on tourist's template<Modular> |