Mo's algorithm

Please suggest some easy problems that can be solved using mo’s algorithm??

Try Count on tree II (cot2) from SPOJ.

1 Like