You are given two linked lists representing two non-negative numbers. 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.
Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
Output: 7 -> 0 -> 8
{优快云:CODE:633841}

本文介绍了一种使用链表表示非负整数并进行加法运算的方法。输入为两个逆序存储的链表,每个节点包含一个数字。文章详细阐述了如何将这两个数相加,并以链表形式返回结果。
742

被折叠的 条评论
为什么被折叠?



