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 302988d commit 925cb2dCopy full SHA for 925cb2d
data_structures/arrays/rotate_array.py
@@ -10,7 +10,7 @@ def rotate_array(arr: List[int], k: int) -> List[int]:
10
if k < 0:
11
k += n
12
13
- def reverse(start, end):
+ def reverse(start: int, end: int) -> None:
14
while start < end:
15
arr[start], arr[end] = arr[end], arr[start]
16
start += 1
0 commit comments