Some clarification needed. please help


#1

In the solution we kept high= m;
why didnt we keep it as m-1;?
also j = (m+n+1)/2 - i, shouldn’t it be (m+n)/2 - i?