12 ms·
> Does finding the number of unique elements in a set That's easy, that's all of them. Sorry, could not resist. Yes, hashing is the usual method. In a sorted
by ReleaseCandidat 2y ago
> Does finding the number of unique elements in a set
That's easy, that's all of them. Sorry, could not resist.
Yes, hashing is the usual method. In a sorted list you can compare to the following element.