Counting sort: when can it be faster than O(n log n) sorting? | LetsGit.IT