I've noticed that in the tutorial the author mentioned that there exist an linear time solution, but I don't know what the solution is ...
So how can CF720B be solved in linear time?
I've noticed that in the tutorial the author mentioned that there exist an linear time solution, but I don't know what the solution is ...