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

Map a-z to the first 26 primes, multiply and then quicksort your dictionary.


Limited to around 11 character words/phrases. You can do better.


yeah, there's no reason to sort, you can just hash. but I'm not sure I can improve the asymptotic complexity of a comparison




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

Search: