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

I don't think there are enough entries to make it worth the cost of a hash. I know it's not "efficient" exactly, but just repeatedly looping through and counting just isn't that slow.


The numbers are so small that you can also just use a big array




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

Search: