Help rahul to search

My code is failing the first test case.

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. :slight_smile:

Thank you. :slight_smile: