one test case is failing
One test case is not passing
1 Like
hi @anyamaurya i dont think your conditions are correct. If (arr[s] <= arr[mid]) and key < arr[s] then it should search to the left of s, but instead s = mid + 1 which results in searching the right part instead. For future reference please save your code on ide.codingblocks.com and share the link
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.