My code is failing the first test case.
Help rahul to search
Can you explain what you’re trying to do?
1.find pivot point
2.if element>first element;binary search in array left of pivot point
3.else binary search in array right of pivot point.
Your approach is totally fine. Its just a semicolon after the “if” condition in the binary search.
Thank you.