Problem: Walls of the North
can not understand the solution in editorial
can anyone give me any idea of solution in deails???
Segment tree or BIT problem
Problem: Walls of the North
can not understand the solution in editorial
can anyone give me any idea of solution in deails???