4 ms·
Or, for better time complexity (with a bit of extra space) making a map of char -> frequency and comparing the results.
by artemisyna 8y ago
Or, for better time complexity (with a bit of extra space) making a map of char -> frequency and comparing the results.
- diegoperini 8y agoThat's Fourier transform!
- DavidSJ 8y agoFunny. :) But a Fourier transform is reversible.