TK Memo
Sign in

Counting sort

Computer Science · Algorithms ⁨13⁩ views

Count how many of each number, add the counts, then place from the right. Later equals land to the right, so start order stays. Time is O of n plus k.

counting sortsortingstable