Segment tree 03 - point update

why Prateek bhaiya is making update at a leaf node?

Because only a single index is supposed to change, that’s why we call them point updates. The leafs correspond to the actual array values in the array.

1 Like

ooh my bad
got it thanks

@sk3657860 if you have further queries let me know else mark this doubt as resolved.

1 Like

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.