Algomorph
Algorithms
Playground
API Docs
Discussions
Sign in
Get started
Algomorph
Counting Sort
C++
C
Java
Python
JavaScript
Loading...
Time and Space Complexity
Best Case Time Complexity:
O(n + k)
Average Case Time Complexity:
O(n + k)
Worst Case Time Complexity:
O(n + k)
Space Complexity:
O(k)