MCPcopy Create free account
hub / github.com/BeeBombshell/Python-DSA / Solution

Class Solution

Sort-all/selection.py:2–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1
2class Solution:
3 def sortArray(self, N: List[int]) -> List[int]:
4 L = len(N)
5 return [N.pop(min(range(L-i), key = lambda x: N[x])) for i in range(L)]
6
7

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected