Available question text
Given a sorted array where every element appears exactly twice except for one that appears once, find that single element in O(log n) time and O(1) space by using binary search that exploits pair alignment (index parity) to locate the half containing the singleton.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Palo Alto Networks
Leetcode 540. Single Element in a Sorted Array
Reported Mar 8, 2026 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source