in this question there were some portions of the array which were sorted because there was just rotation of array elements.
But if the array is completely random, and then we have to apply searching then we have to use linear search or we can use binary search by making some changes???
Binary search- help rahul
In that case you will have to use Linear search.
Binary search only works on sorted array (or sorted but rotated array)
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.