LeetCode
文章平均质量分 87
BlackThompson
Let there be light.
展开
-
LeetCode_2. Add Two Numbers
一、题目内容You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list.You may assume the tw原创 2021-04-01 09:55:06 · 110 阅读 · 0 评论 -
LeetCode_21. Merge Two Sorted Lists
一、题目内容Merge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists.Example 1:Input: l1 = [1,2,4], l2 = [1,3,4]Output: [1,1,2,3,4,4]Example 2:Input: l1 = [], l2 = []Outp原创 2021-04-01 16:31:24 · 103 阅读 · 0 评论