摘要: 1. 题目 https://leetcode.com/problems/intersection-of-two-linked-lists/ #2. 分析 我们可以将列表A和B分别分为三部分,分别为AB公共部分,交点和非公共部分,也就是 A = A非公共部分 + 交点 + AB公共部分 B = B非公 阅读全文
posted @ 2021-08-11 16:31 云梦士 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 1. 题目 1.1 英文题目 Given the head of a sorted linked list, delete all duplicates such that each element appears only once. Return the linked list sorted a 阅读全文
posted @ 2021-08-11 15:24 云梦士 阅读(52) 评论(0) 推荐(0) 编辑