Sample test case gives correct output but getting the Wrong answer upon submission.
Need help with this.
Wrong Answer in Range Min Query
Modified Code
Your Mistake
tree[index] += inc;
in this question you have to replace not increment
Correct statement
tree[index] = inc;
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.