Re: [ counting sort ideea... ]



k is the range of the numbers inserted. so if we insert x then 0<=x<=k
..
It's not necessarly about sorting itself, but the tactic used.
So M operations of any of that should be in O(M+k) .

.