Hacker News new | ask | show | jobs
by pilord314 186 days ago
When you get into C code sometimes you know the most thinngs that will be in the priority queue is like 3. So bubble sort is fine.

You can also do something like a calendar queue with bubble sort for each bin.