Skip to content

aamodpant15/counting_sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

counting_sort

Counting Sort O(n) implementation based on CLRS

How to use

Call counting_sort(a, k), where a is the list to sort, k is the size of the language.
For example, if we are using a list of decimal numbers, k = 10. Since decimal numbers have 10 digits. If it was a list of characters, k = 26, et cetera.

Returns another sorted list. Runs in O(n) time, where n is the length of the list.

About

Counting Sort O(n) implementation based on CLRS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages