×

Pigeonhole sort

Sorting algorithm
Pigeonhole sorting is a sorting algorithm that is suitable for sorting lists of elements where the number n of elements and the length N of the range of possible key values are approximately the same. It requires O(n + N) time. Wikipedia
Worst-case complexity: n+2^k
Stable: Yes