3 ms·
I wrote some comparison some time ago https://github.com/remusao/anagrams-bench/blob/master/README.md https://github.com/remusao/anagrams-bench/blob/master/READ
by pythux 8y ago
I wrote some comparison some time ago https://github.com/remusao/anagrams-bench/blob/master/README.md https://github.com/remusao/anagrams-bench/blob/master/README...
Unfortunately, as you suggest, the complexity of arbitrary precision multiplication kicks in and performance suffers.