I am unable to do the implementation part of this ques. Can you pls help me by giving code or pseudo-code for the same ?
MAX QUERY - 1 : Segment trees
Hey @aman_ishan
Here you go https://ide.codingblocks.com/s/199510
And I hope after this example you will be able to solve all segment tree questions without help
Happy Coding !!