The Full Counting Sort

  • + 1 comment

    Hi. I originally directly followed the counting sort pseudocode on Wikipedia. However, that pseudocode is very general and meant to work with multiple languages. In Java, the code is cleaner if you use HashMaps instead of arrays to code counting sort. The algorithm I coded is the same as counting sort, including the runtime.

    HackerRank solutions.