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 305ecbc commit 83a7fd3Copy full SHA for 83a7fd3
src/hackerrank/interview_preparation_kit/arrays/ctci_array_left_rotation.py
@@ -15,11 +15,11 @@ def rot_left_one(group: list[int]) -> list[int]:
15
return group
16
17
18
-def rot_left(group: list[int], d: int) -> list[int]:
+def rot_left(group: list[int], d_rotations: int) -> list[int]:
19
20
output = group.copy()
21
i = 1
22
- while i <= d:
+ while i <= d_rotations:
23
output = rot_left_one(output)
24
i += 1
25
0 commit comments