Back to course home
0% completed
Problem Challenge 2: Rotate a LinkedList (medium)
Problem Statement
Given the head of a Singly LinkedList and a number ‘k’, rotate the LinkedList to the right by ‘k’ nodes.
Constraints:
- The number of nodes in the list is in the range
[0, 500]
. -100 <= Node.val <= 100
- 0 <= k <= 2 * 10^9
Try it yourself
Try solving this question here:
.....
.....
.....
Like the course? Get enrolled and start learning!
Table of Contents
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible