educative.io

Educative

Why the need of second check inside while loop

Why do we need this check once again as we have already doing it in the while loop.

if (input[j] > key)