+ 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 ответов
+ 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