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

Nothing Earth shattering but the algorithm for finding anagrams: just sort by letters and compare resulting strings. It was probably the first elegant algorithm I saw before even seeing a computer. I still have 70-ish chars long Perl oneliner I wrote nearly 20 years ago, which lists anagrams from the provided wordlist.


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

Search: