Inversion count

in the line 23please explain cnt += mid - I +1;
why we did a plus 1;

just take a example @Jaideep_singh you will understand the significance of +1

if any difficulty then ask :smiley:

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.