Loading...
Engaged Employer
Binary search on a sorted array that was rotated once
Anonymous
look at middle of array, one half is sorted, one half is rotated once, binary search the sorted part, repeat on the rotated part.
@Anonymous Employee, Rotated by how many elements?
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.