Skip to content

Commit 6362852

Browse files
committed
Create README - LeetHub
1 parent 39e5c46 commit 6362852

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

0445-add-two-numbers-ii/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<h2><a href="https://leetcode.com/problems/add-two-numbers-ii">445. Add Two Numbers II</a></h2><h3>Medium</h3><hr><p>You are given two <strong>non-empty</strong> linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list.</p>
2+
3+
<p>You may assume the two numbers do not contain any leading zero, except the number 0 itself.</p>
4+
5+
<p>&nbsp;</p>
6+
<p><strong class="example">Example 1:</strong></p>
7+
<img alt="" src="https://assets.leetcode.com/uploads/2021/04/09/sumii-linked-list.jpg" style="width: 523px; height: 342px;" />
8+
<pre>
9+
<strong>Input:</strong> l1 = [7,2,4,3], l2 = [5,6,4]
10+
<strong>Output:</strong> [7,8,0,7]
11+
</pre>
12+
13+
<p><strong class="example">Example 2:</strong></p>
14+
15+
<pre>
16+
<strong>Input:</strong> l1 = [2,4,3], l2 = [5,6,4]
17+
<strong>Output:</strong> [8,0,7]
18+
</pre>
19+
20+
<p><strong class="example">Example 3:</strong></p>
21+
22+
<pre>
23+
<strong>Input:</strong> l1 = [0], l2 = [0]
24+
<strong>Output:</strong> [0]
25+
</pre>
26+
27+
<p>&nbsp;</p>
28+
<p><strong>Constraints:</strong></p>
29+
30+
<ul>
31+
<li>The number of nodes in each linked list is in the range <code>[1, 100]</code>.</li>
32+
<li><code>0 &lt;= Node.val &lt;= 9</code></li>
33+
<li>It is guaranteed that the list represents a number that does not have leading zeros.</li>
34+
</ul>
35+
36+
<p>&nbsp;</p>
37+
<p><strong>Follow up:</strong>&nbsp;Could you solve it without reversing the input lists?</p>

0 commit comments

Comments
 (0)