Skip to content

Commit 925cb2d

Browse files
committed
fixed reverse issue
1 parent 302988d commit 925cb2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/arrays/rotate_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def rotate_array(arr: List[int], k: int) -> List[int]:
1010
if k < 0:
1111
k += n
1212

13-
def reverse(start, end):
13+
def reverse(start: int, end: int) -> None:
1414
while start < end:
1515
arr[start], arr[end] = arr[end], arr[start]
1616
start += 1

0 commit comments

Comments
 (0)