please correct my code and tell me where it is going wrong
corrected code --> https://ide.codingblocks.com/s/622874
I hope its clear now??
yes, could you please tell me what was the problem in my code that it showed time limit exceeding in one of the test cases?
ur code is failing on this test case
in binary search what u are supposed is to keep two variables start and end pointing at beginning and end of array and then compute mid at each step and accordingly change start and end pointer… refer my code i sent u
I hope its clear now…
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen