/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* struct ListNode *next;
* };
*/
struct ListNode* addTwoNumbers(struct ListNode* l1, struct ListNode* l2){
struct ListNode *p = l1,*q = l2,*r;
struct ListNode *p1 = l1,*q1 = l2;
struct ListNode* l = (struct ListNode*)malloc(sizeof(struct ListNode));
l->next = 0;
int length1 = 0,length2 = 0,add = 0;
while(p1 != 0){
length1
leetcode第二题及 pointer points here memory cannot be printed
最新推荐文章于 2024-08-10 22:52:22 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)