...

/

Single Element in a Sorted Array

Single Element in a Sorted Array

Let's try to use a sorted array with duplicates as the input array. Difficulty Level: Medium

Problem statement

Suppose we are given a sorted array that only consists of integers, where every element appears twice, except for one element which appears once. Find the element that appears only once.

Constraints:

  • 1nums.length1031 \leq nums.length \leq 10^3
...