Search an Element in a Rotated Sorted Array
Given a sorted rotated array arr[] having N number of elements and a target element K. We are supposed to find the 0 (zero) based index (indexing starts from 0 rather than 1) of the target element if it exists and return -1 if it doesn’t. Let us assume for now that duplicates don’t exist, ...