Leetcode #2. 两数相加
原文英文,约500词,阅读约需2分钟。发表于: 。Problem 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...
给定两个非空链表表示非负整数,数字以逆序存储。将两个数字相加并返回结果链表。示例:l1=[2,4,3],l2=[5,6,4],输出为[7,0,8]。使用指针遍历链表,处理进位,最终返回结果链表。