MCPcopy 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

1def 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_arrayFunction · 0.85
copyMethod · 0.80

Tested by

no test coverage detected