please correct my code and tell me where it is going wrong
My code is working for 3 out of 4 test cases
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
8
-56
0
45
50
57
68
98
207
1
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
the doubt.