2021年8月31日
摘要: 【题目】 将链表组成的数相加 leetcode2变式,2题是高位在后,现在是高位在前节点 You are given two non-empty linked lists representing two non-negative integers. The most significant dig 阅读全文
posted @ 2021-08-31 17:11 alau 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 【题目】 反转链表是之后很多题的基础 把链表12345反转成54321 Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [ 阅读全文
posted @ 2021-08-31 16:51 alau 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 【题目】 将两个用list存储的数字相加,返回相加后的值 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, 阅读全文
posted @ 2021-08-31 14:31 alau 阅读(26) 评论(0) 推荐(0) 编辑