+ 2
Binary search didnt output ??
2 Réponses
+ 3
There were 2 minor bugs:-
Line 12 -> it was dividing "last" by 2 not the whole expression. (Use brackets)
Line 15 -> you are not breaking the loop once it has been found(also you were displaying the value at middle not index)
Here is the fix👇
https://code.sololearn.com/cFzaf1iwFSrs/?ref=app
+ 1
Arsenic Thank you for your efforts with me😊