+ 1
Can somebody help me with this c code about binary search
It should only print âNot foundâ one time, but it turned out kept printing it.
4 Answers
+ 1
I got it... Such a stupid mistake, heres the correct one
https://code.sololearn.com/cHGXMuiuvq4g/?ref=app
+ 1
while loop is already an recursion, doesn't need other recursions..
0
return is not ending the loop or maybe ur function is being called over and over