4 ms·
Yes, that's what I had in mind when I wrote "I may sort the word before hand". Emphasis on "may", though: for small enough words, sorting may very well slow us
by loup-vaillant 5y ago
Yes, that's what I had in mind when I wrote "I may sort the word before hand".
Emphasis on "may", though: for small enough words, sorting may very well slow us down, so it really depends on the data: are we processing long words, or lots of small words?