//Search an elemnet in rotated sorted array 1. First we will calculate the mid element 2. Then check wheather arr[mid]>arr[start] 3. if above condition satisfied we can we find k is there or not between arr[strat] and arr[mid] 3.then check for other part ======================================================= if(arr[mid]>arr[mid+1]) return arr[mid+1] if(arr[mid]arr[start]){ start=mid+1; }else{ end=mid-1; } } return -1; } }