Given a sorted array of integers A where every element appears twice except for one element which appears once,
find and return this single element that appears only once.
The only argument given is the integer array A.
Return the single element that appears only once.
1 <= length of the array <= 100000 1 <= A[i] <= 10^9
Input 1: A = [1, 1, 2, 2, 3] Output 1: 3 Input 2: A = [5, 11, 11, 100, 100] Output 2: 5
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a doubt? Checkout Sample Codes for more details.