Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: