We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43728a3 commit c1abeb4Copy full SHA for c1abeb4
sorts/cyclic_sort.py
@@ -14,7 +14,8 @@
14
15
def cyclic_sort(nums: list[int]) -> list[int]:
16
"""
17
- Sorts the input list of n integers from 1 to n in-place using the Cyclic Sort algorithm.
+ Sorts the input list of n integers from 1 to n in-place
18
+ using the Cyclic Sort algorithm.
19
20
:param nums: List of n integers from 1 to n to be sorted.
21
:return: The same list sorted in ascending order.
0 commit comments