2. Add Two Numbers
Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
Output: 7 -> 0 -> 8
Explanation: 342 + 465 = 807.
1 | public ListNode addTwoNumbers(ListNode l1, ListNode l2) { |
Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
Output: 7 -> 0 -> 8
Explanation: 342 + 465 = 807.
1 | public ListNode addTwoNumbers(ListNode l1, ListNode l2) { |