Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dsamarin
on April 24, 2024
|
parent
|
context
|
favorite
| on:
American flag sort
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.
thfuran
on April 24, 2024
|
next
[–]
If that works for you for anything but very small strings, I want to buy your computer.
remram
on April 24, 2024
|
prev
[–]
Even for 3-codepoint strings it already wouldn't fit in any computer that exists. And that is not sufficient to encode all 1-glyph strings.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: