If I need to sort some list, say a, using sort method
in Python like below.
a=[3,7,1,0,2,8]
a.sort()
print a
What are the worst, average and best cases
sorting programs for such programs? And what difficulties do they have in each? What sorting method does python use in this?
source
to share