Example 1
countDistinctValues()Input
nums = [5, 8, 7, 5, 8, 3, 5, 7, 4, 4, 5, 2, 2, 1, 5, 6, 8, 3, 3, 2, 6, 8, 3, 3, 3, 8, 3, 8, 6, 4, 3, 4, 4, 1, 5, 3, 2, 2, 1]Output
8Why
`countDistinctValues` returns `8` for this input.Problem 255 of 1146 in the arena