Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ts4z
on April 24, 2024
|
parent
|
context
|
favorite
| on:
American flag sort
Seems like it should work for arbitrary byte strings (any charset, any encoding)but obviously the performance characteristics will differ because of non-uniform distribution. But that happens even in ASCII.
AmblingAvocado
on April 26, 2024
[–]
Yes, you’ll get something sorted based on the bytes in the string but it won’t be lexicographically correct - for example, à will be sorted after b.
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: