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 02f2a78 commit 7096968Copy full SHA for 7096968
1 file changed
data_structures/arrays/rotate_array.py
@@ -1,4 +1,6 @@
1
-def rotate_array(arr, k):
+from typing import List
2
+
3
+def rotate_array(arr: List[int], k: int) -> List[int]:
4
n = len(arr)
5
if n == 0:
6
return arr
0 commit comments