Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BeeBombshell/Python-DSA
/ sortArray
Method
sortArray
Sort-all/selection.py:3–5 ·
view source on GitHub ↗
(self, N: List[int])
Source
from the content-addressed store, hash-verified
1
2
class
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
1
pop
Method · 0.80
Tested by
no test coverage detected