摘要: 1. 原始题目 You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their node 阅读全文
posted @ 2019-04-07 11:43 三年一梦 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: 2. 题目理解 将m至n的链表反转。注意下标这里在链表中实际上是m-1至 阅读全文
posted @ 2019-04-07 11:02 三年一梦 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should prese 阅读全文
posted @ 2019-04-07 09:50 三年一梦 阅读(377) 评论(0) 推荐(0) 编辑