Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
artemisyna
· 8y ago · 0 comments
Or, for better time complexity (with a bit of extra space) making a map of char -> frequency and comparing the results.
Comments
[–]
diegoperini
8y ago
That's Fourier transform!
[–]
DavidSJ
8y ago
Funny. :) But a Fourier transform is reversible.