Skip Navigation
35 comments
  • This is almost a bucket sort, which is practically O(n).

    (I'll leave it to the other readers to state the trade-offs)

  • In a situation where performance isn't required but absolute zero overhead is paramount, this is a perfect sort. Depends on the data itself though. Lots of small numbers maybe multiply each by 10 or 20, lots of big numbers...well...bad luck.

35 comments