0061. Rotate List
https://leetcode.com/problems/rotate-list
Description
Given the head of a linked list, rotate the list to the right by k places.
Example 1:

Example 2:

Constraints:
The number of nodes in the list is in the range
[0, 500].-100 <= Node.val <= 1000 <= k <= 2 * 109
ac
Last updated
Was this helpful?