You are given an integer array nums.
A distinct value
It appears at least nums.
The difference between every pair of consecutive indices where
Return the number of distinct special values in nums.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
A distinct value
It appears at least nums.
The difference between every pair of consecutive indices where
Return the number of distinct special values in nums.
Constraints:
nums.length
nums[i]