Problems > Count Distinct Values > Editorial

Count Distinct Values — Solution & Editorial

Back to the Problem

Insert everything into a hash set and print its size.

Complexity: O(N)