garimasingh128 / CP-DSA-Cpp-C

🕺 Give me data and I will structure it! 🔥
59 stars 100 forks source link

Added Counting sort Algorithm #13

Closed mdzaidalam52 closed 3 years ago

mdzaidalam52 commented 3 years ago

This Algorithm sorts the given sequence of non-negative integers numbers in O(n) time where n is the size of the sequence. The only thing that it demands is the largest integer in the sequence. if the largest number is k then its space complexity is O(k+n)

pull-assistant[bot] commented 3 years ago
Score: 1.00

Best reviewed: commit by commit


Optimal code review plan

     Added counting sort algorithm      Delete counting_sort

Powered by Pull Assistant. Last update aa9b8ac ... f87f981. Read the comment docs.