You are viewing a single comment's thread. Return to all comments →
mine python solution
def CountingSort(arr): lps = [0]*(max(arr)+1) for i in arr: lps[i] += 1 return lps
correct solution according to hacker rank
def CountingSort(arr): lps = [0]*(100) for i in arr: lps[i] += 1 return lps
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 →
mine python solution
correct solution according to hacker rank