LeetCode
Single Element in a Sorted Array
Click
here
for an explanation.