摘要: 合并两个有序链表 将两个升序链表合并为一个新的 升序 链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 示例: 输入:1->2->4, 1->3->4 输出:1->1->2->3->4->4 class Solution: def mergeTwoLists(self, l1: List 阅读全文
posted @ 2020-08-04 23:39 topass123 阅读(114) 评论(0) 推荐(0) 编辑