Skip to content

Commit c1abeb4

Browse files
Update cyclic_sort.py
1 parent 43728a3 commit c1abeb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sorts/cyclic_sort.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
def cyclic_sort(nums: list[int]) -> list[int]:
1616
"""
17-
Sorts the input list of n integers from 1 to n in-place using the Cyclic Sort algorithm.
17+
Sorts the input list of n integers from 1 to n in-place
18+
using the Cyclic Sort algorithm.
1819
1920
:param nums: List of n integers from 1 to n to be sorted.
2021
:return: The same list sorted in ascending order.

0 commit comments

Comments
 (0)