Add Two Numbers
-
[LeetCode] Add Two Numbers코딩테스트/LeetCode 2022. 1. 2. 17:13
문제 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 contains a single digit. Add the two numbers and return the sum as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself. 두 개의 음이 아닌 정수를 나타내는 비어 있지 않는 linked-list가 주어진다. 숫자는 역순으로 저장되고 각 노드에는 단일 숫자가 ..