← BackMark CompleteCounting SortCount frequency of small-range keys then prefix sum.sortingcounting-sortUpdated 2025-09-01ComplexityO(n + k) where k = rangeStableReconstruct using cumulative counts