摘要: Rotate List (M) 题目 Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = 阅读全文
posted @ 2020-07-11 03:34 墨云黑 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Flatten a Multilevel Doubly Linked List (M) 题目 You are given a doubly linked list which in addition to the next and previous pointers, it could have a 阅读全文
posted @ 2020-07-11 01:51 墨云黑 阅读(164) 评论(0) 推荐(0) 编辑