特牛网址导航

[LeetCode C++] 2. 两数相加_超级大洋葱806的博客-CSDN博客

网友收藏
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/add-two-numbers/题目:解法:/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x)