dsa1 min read
Single Element in a Sorted Array — Parity Index Binary Search
Find the single non-duplicate element in O(log n) by observing that pairs shift the parity of indices after the singleton.
Read →
1 articles
Find the single non-duplicate element in O(log n) by observing that pairs shift the parity of indices after the singleton.