Concept Flow - Search in Rotated Sorted Array
Start with full array
Find middle element
Check if middle is target?
Return index
Is left half sorted?
Is target in left half?
Search left half
Repeat until found or empty
Return -1 if not found
The search splits the array by middle, checks which half is sorted, and decides where to continue searching until the target is found or array is empty.
