Given an integer array nums of odd length n, determine whether the middle element of nums is unique in the array.
Return true if the middle element appears exactly nums, and false otherwise.
Constraints:
n nums.length
n is odd.
nums[i]
Given an integer array nums of odd length n, determine whether the middle element of nums is unique in the array.
Return true if the middle element appears exactly nums, and false otherwise.
Constraints:
n nums.length
n is odd.
nums[i]