Python:实现counting sort计数排序算法
def counting_sort(collection):
# if the collection is empty, returns empty
if collection == []:
return []
# get some information about the collection
def counting_sort(collection):
# if the collection is empty, returns empty
if collection == []:
return []
# get some information about the collection