You are given an integer array nums.
An integer is considered special if all of its occurrences in nums appear together in a single contiguous block.
Return the total number of distinct special integers in nums.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
An integer is considered special if all of its occurrences in nums appear together in a single contiguous block.
Return the total number of distinct special integers in nums.
Constraints:
nums.length
nums[i]