wrong ans
Problem in point update
I have tried 0 indexed first but it has same problem.
here is the 0 indexed array code
why we have to change the array when we are accessing ans from tree array.
@pankajpoply45,
Just a precautionary step, and a logical one as well, the array should indeed change right, after each update…so why not do it…??