Hacker News new | ask | show | jobs
by ReleaseCandidat 759 days 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.