Skip to content

Commit 83a7fd3

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] clean code: variable naming
1 parent 305ecbc commit 83a7fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hackerrank/interview_preparation_kit/arrays/ctci_array_left_rotation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ def rot_left_one(group: list[int]) -> list[int]:
1515
return group
1616

1717

18-
def rot_left(group: list[int], d: int) -> list[int]:
18+
def rot_left(group: list[int], d_rotations: int) -> list[int]:
1919

2020
output = group.copy()
2121
i = 1
22-
while i <= d:
22+
while i <= d_rotations:
2323
output = rot_left_one(output)
2424
i += 1
2525

0 commit comments

Comments
 (0)