Author
Result
0.2726 s
Code
def sort(a): # in-place Timsort-based impl. (CPython 3.12)
"""
Sort integers in-place, handling any value permitted by the Python int type
(the function relies on Python’s native Timsort: O(n log n) and stable).
"""
a.sort()