InterviewDigestInterviewDigest

OA Practice Workspace

Technical2026-08-12

Solve a problem involving recursion and binary search, including implementing optimized approaches and handling follow-up requirements.

AI-Expanded — inferred from the question title, not from the original candidate report

Given a sorted array of integers that has been rotated at an unknown pivot, implement a recursive binary search algorithm to find the index of a target value. Your solution must achieve O(log n) time complexity, and you should provide a follow-up analysis explaining how your approach would change if the array contained duplicate elements.

Context & Summary

A 90-minute technical round focused on two medium-level DSA problems. The candidate was required to write and execute code on a compiler while addressing follow-up optimizations.

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.