+ 1

Binary search program doesn't give output

This program I made to try the binary search algorithm but gives no output. I tried to print values of mid,they are correct though. https://code.sololearn.com/chRQvLUPiUrG/?ref=app

11th Jul 2019, 10:02 AM
Rahul Gill
Rahul Gill - avatar
2 Respostas
+ 1
the function wont return anything after the first recursion. take a return value from line 19 and 21
11th Jul 2019, 10:40 AM
Taste
Taste - avatar
+ 1
Taste success
11th Jul 2019, 10:55 AM
Rahul Gill
Rahul Gill - avatar