Log in
← All problems

Rotate a list

mediumLists20 XP

Rotate nums to the right by k places: the last k items move to the front. k can be larger than the list.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 3 hidden tests.