MCPcopy
hub / github.com/HuberTRoy/leetCode / selectionSort

Function selectionSort

Sorted/sotred.py:26–34  ·  view source on GitHub ↗
(shuffledList)

Source from the content-addressed store, hash-verified

24
25
26def selectionSort(shuffledList):
27
28 new = []
29 for i in range(len(shuffledList)):
30 currentMinValue = min(shuffledList)
31 new.append(currentMinValue)
32 shuffledList.remove(currentMinValue)
33
34 return new
35
36# 插入排序。
37# 例:

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected