why Prateek bhaiya is making update at a leaf node?
Segment tree 03 - point update
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
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.