Can anyone please tell what is the name of this sorting method?

I have implemented this algorithm to solve Problem: Turbo Sort after reading a thread on codechef, This algorithm is used by the guy who is top on the problem leader board.

You may see my implementation http://www.codechef.com/viewsolution/5204230

But i don’t now which sorting algo is thi.

Can anyone please tell what is the name of this algo ?

Its called Counting Sort. You can read more about it here.

1 Like

Thanks…