Re:American Flag Sort
by dsamarin on Wednesday April 24, 2024 @12:00AM
(#40140409)
The obvious solution to this is to pre-compile a list of all possible Unicode strings up to the required length, sort them, and create a lookup table using their indices. I wonder for what kind of project this would be useful.
[ Parent
| on HN ]
If that works for you for anything but very small strings, I want to buy your computer.