摘要: 删除链表中的重复结点: Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Input: 1->1->2 Output: 1->2 Example 阅读全文
posted @ 2020-05-26 07:17 IreneZh 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: 阅读全文
posted @ 2020-05-26 05:41 IreneZh 阅读(125) 评论(0) 推荐(0) 编辑