正在加载……
← 返回 nvidia 的题目列表
Rotate List by k
类型:online_judge
nvidia Given a linked list, rotate the list k times. Note: The number of linked list nodes won't exceed $10^3$. Example: Input: 1->2->3->4->5->NULL, k = 2 Output: 4->5->1->2->3->NULL