TWO TEST BINARY SEARCH to ONE TEST BINARY SEARCH

 Below is the code for binary search function with 1 tests in while loop =>

I have converted the condition which ends the while loop to outside of while as shown in images.





Comments

Popular posts from this blog

CODECHEF CONTEST WRITEUP (RANGEASSIGN DIV 4)

How functions work in low level ?