Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

Nice catch. I should eliminate the sorting on the input words anyways, but save the duplicates in the neighbors, i.e. cache the previous ones.

It does not affect the Big O level I mentioned in sorting of the word list loaded from the file. Looks like it's the necessary step.



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

Search: