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

Or, for better time complexity (with a bit of extra space) making a map of char -> frequency and comparing the results.


That's Fourier transform!


Funny. :) But a Fourier transform is reversible.




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

Search: