LeetCode – Rotate List
Given a linked list, rotate the list to the right by _k_ places, where _k_ is non-negative. Example 1: Example 2: Input: 0->1->2->NULL, k = Output: 2->0->1->…
Given a linked list, rotate the list to the right by _k_ places, where _k_ is non-negative. Example 1: Example 2: Input: 0->1->2->NULL, k = Output: 2->0->1->…