An open API service indexing awesome lists of open source software.

https://github.com/cool-coding/leetcode

LeetCode exercise
https://github.com/cool-coding/leetcode

Last synced: 5 months ago
JSON representation

LeetCode exercise

Awesome Lists containing this project

README

          

### 001.AddTwoNumbers
给定两个非空链表来表示两个非负整数。位数按照逆序方式存储,它们的每个节点只存储单个数字。将两数相加返回一个新的链表。
你可以假设除了数字 0 之外,这两个数字都不会以零开头。
示例:
> 输入:(2 -> 4 -> 3) + (5 -> 6 -> 4)

> 输出:7 -> 0 -> 8

>原因:342 + 465 = 807