Update counting_sort.py
之前代码有错误,第26行已修改
This commit is contained in:
parent
2280169fd9
commit
3e5fb58281
@ -23,7 +23,7 @@ def counting_sort(a: List[int]):
|
||||
a_sorted[index] = num
|
||||
counts[num] -= 1
|
||||
|
||||
a = a_sorted
|
||||
a[:] = a_sorted
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user