[LeetCode] 2. Add Two Numbers [Medium]
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 contain a single digit. Add the two numbers and return it as a linked list.
You may assume the two numbers do not contain any leading zero, except the number 0 itself.
Example
Analyse:
兩個List的Node依序相加, 若結果大於10則記錄需進位.
Solution: ↩
Previous[LeetCode] 1. Two Sum [Easy]Next[LeetCode] 3. Longest Substring Without Repeating Characters [Medium]
Last updated