← ServiceNow questions

Search an element in a sorted and rotated array

Filed under ServiceNow · Also reported at National Instruments, NIELIT, Tekion

Given a sorted and rotated array of distinct elements, find the index of a target element in O(log n) time.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related ServiceNow questions

Collected from public candidate posts and coding forums. Updated Nov 2026.