2nd Mar 2020, 4:15 PM
S E N I O R
S E N I O R - avatar
2 ответов
+ 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
2nd Mar 2020, 4:23 PM
Arsenic
Arsenic - avatar
+ 1
Arsenic Thank you for your efforts with me😊
2nd Mar 2020, 5:14 PM
S E N I O R
S E N I O R - avatar