38 ms·
Somehow the article posits you need to check if the list is already sorted to support multiple passes, but this version of radix sort is designed to be stable w
by contravariant 5y ago
Somehow the article posits you need to check if the list is already sorted to support multiple passes, but this version of radix sort is designed to be stable which is all you need.
And technically checking if the list is already sorted is mostly faster because of caching, in theory radix sort could read each byte exactly once.