You are viewing a single comment's thread. Return to all comments →
Just make j>=0 in while loop :-
while(j>=0 && value<arr[j])
Seems like cookies are disabled on this browser, please enable them to open this website
Correctness and the Loop Invariant
You are viewing a single comment's thread. Return to all comments →
Just make j>=0 in while loop :-
while(j>=0 && value<arr[j])