We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e608be commit e6cc880Copy full SHA for e6cc880
counting_sort.py
@@ -20,7 +20,7 @@ def counting_sort(arr):
20
k = max(arr)
21
temp_arr = [0]*(k+1)
22
for i in range(0,len(arr)):
23
- temp_arr[arr[i]]= temp_arr[arr[i]]+1
+ temp_arr[arr[i]] = temp_arr[arr[i]]+1
24
#temp_array[i] contain the times the number i appear in arr
25
26
for i in range(1, k+1):
0 commit comments