Please can someone give the approach to this problem. thanks
2 Likes
read about these things first.
Segment Tree | Range Minimum Query - GeeksforGeeks *
now try reading and solving it.
Thanks
1 Like
1 Like