" Your code might be failing for larger test-cases " and hence partial score - Solved


#1

If anybody facing this problem then do not call a BS function instead do an iterative BS within the same Search funtion only. It worked for me after wasting 2 hrs :expressionless::expressionless:


#2

May be you are passing your array using pass by value which takes O(n) time itself.


#3

No was passing it by reference


#4

I am doing iterative binary search but still it is giving the same error!!


#5

you have to call Binary search only for one segment