Update Add-Two-linkedlist.cpp

pull/1019/head
chhotu2 2022-10-12 15:02:34 +05:30 committed by GitHub
parent c6d41b3e44
commit 5838a732dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ Node *Sum(Node *head1, Node *head2)
carry = sum / 10;
}
return (ans->next);
return reverse(ans->next);
}
int main()