What is the structure of binary search code in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is the structure of binary search code in java?

I've tried to make a program from stuffs I learnt on SL. But it is showing results for only 1,2,3,50 & 100 while other times it is printing error as- 'Time limit exceeded.' Help me out with this: https://code.sololearn.com/cGcvetM3vt9s/?ref=app

28th Sep 2018, 6:15 PM
NilishaB
NilishaB - avatar
2 Answers
+ 2
It's still not working.
28th Sep 2018, 6:52 PM
NilishaB
NilishaB - avatar
+ 2
It is now working. Sincere gratitude for pointing out my mistakes. https://code.sololearn.com/cJfRx8Jec8eE/?ref=app
29th Sep 2018, 2:35 AM
NilishaB
NilishaB - avatar