You are given an integer array nums. The uniqueness array of nums is a collection containing the number of distinct elements present in every non empty contiguous subarray of nums, sorted in ascending order.
Return the median of the uniqueness array of nums.
Note: The median of an array of size
is the element located at index when sorted in nondecreasing order using based indexing.
Constraints:
nums.length
nums[i]
You are given an integer array nums. The uniqueness array of nums is a collection containing the number of distinct elements present in every non empty contiguous subarray of nums, sorted in ascending order.
Return the median of the uniqueness array of nums.
Note: The median of an array of size
is the element located at index when sorted in nondecreasing order using based indexing.
Constraints:
nums.length
nums[i]