Please can someone give the approach to this problem. thanks
2 Likes
1 Like
Am I wrong or this problem is VERY similar to this? https://www.codechef.com/LTIME52/problems/CHEFTRAF
1 Like
read about these things first.
http://www.geeksforgeeks.org/segment-tree-set-1-range-minimum-query/ *
now try reading and solving it.
Thanks
1 Like