We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Counting Sort 1
- Discussions
Counting Sort 1
Counting Sort 1
Sort by
recency
|
623 Discussions
|
Please Login in order to post a comment
My Python Solution
Python solution:
#C++ O(n)
method 1:
method 2:
def countingSort(arr): # Write your code here ans = [0] * 100 for i in arr: ans[i] += 1 return ans
PHP: