Counting Sort 1

  • + 0 comments

    the general idea for counting sort is that we make a histogram of which numbers occur how many times. We know the range in which the numbers will lie in, so we create an array accordingly. The wikipedia explanation and algorithm might help you understand better.