https://github.com/cool-coding/leetcode
LeetCode exercise
https://github.com/cool-coding/leetcode
Last synced: 5 months ago
JSON representation
LeetCode exercise
- Host: GitHub
- URL: https://github.com/cool-coding/leetcode
- Owner: Cool-Coding
- Created: 2018-05-06T09:45:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-02T13:28:43.000Z (almost 8 years ago)
- Last Synced: 2025-06-08T00:05:03.637Z (9 months ago)
- Language: Java
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### 001.AddTwoNumbers
给定两个非空链表来表示两个非负整数。位数按照逆序方式存储,它们的每个节点只存储单个数字。将两数相加返回一个新的链表。
你可以假设除了数字 0 之外,这两个数字都不会以零开头。
示例:
> 输入:(2 -> 4 -> 3) + (5 -> 6 -> 4)
> 输出:7 -> 0 -> 8
>原因:342 + 465 = 807