Mid calculated wrong

At 4:40 time stamp in this video, sir said the mid will be 6 but 12 was the previous mid and as we know from the code that new end will be 11 and new mid will be (start+end)/2 that is (0+11)/2 = 5 and not 6 . I just want to confirm whether i am right or i missed something.

hello @nishchay-verma
yeah that should be 11

ok 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.