Last active 1690916143

jamesmurdza revised this gist 1690916143. Go to revision

1 file changed, 5 insertions

test.py(file created)

@@ -0,0 +1,5 @@
1 + if k == 0:
2 + return []
3 + arr.sort()
4 + ans = arr[-k:]
5 + return ans
Newer Older