You are viewing a single comment's thread. Return to all comments →
Can anyone explain why this wouldn't pass all test cases?
def countingSort(arr): new_arr = [0]*(max(arr)+1) for val in arr: new_arr[val] += 1 return new_arr
Seems like cookies are disabled on this browser, please enable them to open this website
Counting Sort 1
You are viewing a single comment's thread. Return to all comments →
Can anyone explain why this wouldn't pass all test cases?