LC: 1133. Largest Unique Number
Input: nums = [5,7,3,9,4,9,8,3,1]
Output: 8
Explanation: The maximum integer in the array is 9 but it is repeated. The number 8 occurs only once, so it is the answer.Input: nums = [9,9,8,8]
Output: -1
Explanation: There is no number that occurs only once.Last updated