Ques is MIN-QUERY -I Segment Trees
Ques: https://hack.codingblocks.com/contests/c/547/309
Code:
https://ide.codingblocks.com/s/46677
Code is correct but getting wrong answer
https://ide.codingblocks.com/s/46703
In the update query, you are supposed to set A[x]=y, and not increment A[x].
I have made the changes.
Rest of the code was perfect.
1 Like
Again Noob me
Thanks
No issues, keep coding bro…!! 