I have an array of elements A[] which are not zero now what i want to do is to update
range of elements.Then i want find the element at a particular index.
Suppose if a have an array like this A[]={4,6,7,3,2};
After inserting this elments in BIT the BIT look like BIT[]={4,10,7,20,2}
After doing
Update:2 3 5
Update:3 5 2
The elements in binary index tree are {4,15,9,22,2}
Link:https://ideone.com/AIog9D
Now i want to find the element at particular index How can i find it ?
Please correct if there is anything wrong in the question.