Binary search,one test case falling
@aryanv
Input :
4
3 5 6 9
5
Expected Output :
1
Your Output :
-1
Correction Required :
Change the loop condition in Line No. 7 to while(l <= r)
ohh ok , thanks a lot.
@aryanv
Input :
4
3 5 6 9
5
Expected Output :
1
Your Output :
-1
Correction Required :
Change the loop condition in Line No. 7 to while(l <= r)
ohh ok , thanks a lot.