Hi,
I don’t know where i am getting wrong with my code can anybody can figure it out please.
I am not getting why to use binary search in this question.
Thank’s a lot.
Hi,
I don’t know where i am getting wrong with my code can anybody can figure it out please.
I am not getting why to use binary search in this question.
Thank’s a lot.
can u please give the link to the question
now i have provided you question link also.
I think you have not understood the question properly.
Try this test case :
5
5 4 1 2 3
Here your code fails .
thank’s for that