โ† OYO questions

Unique duplicate-array element, max sum stream, and 0-1-2 sort

Filed under OYO

Given a sorted array of integers where every element appears exactly twice except for one unique element which appears only once, find that single unique element in O(log n) time and O(1) space.

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 OYO questions

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