Find the lone element that appears once in a sorted array where every other element appears twice.
Constraints
Example
>>> single_element([1,1,2,3,3,4,4,8,8]) 2 >>> single_element([3,3,7,7,10,11,11]) 10 >>> single_element([5]) 5 >>> single_element([1,1,2,2,3]) 3
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints