Doubt in inversion count

at 9:20 how index 5 increment two times. at previous step it is incremented one times.

@sourabhboss the values in cumulative array will increase the way they generally do, it was just for explaining the concept don’t focus much on the value.
As you can also see at the last in the code,in update function the BIT is incremented by the val i.e. 1.

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.