Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ rotate_array.py
File
rotate_array.py
data_structures/arrays/rotate_array.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
rotate_array(arr: list[int], steps: int) -> list[int]:
2
""
"
3
Rotates a list to the right by steps positions.
4
Callers
nothing calls this directly
Calls
2
rotate_array
Function · 0.85
copy
Method · 0.80
Tested by
no test coverage detected