Update Add-Two-linkedlist.cpp
parent
c6d41b3e44
commit
5838a732dc
|
@ -125,7 +125,7 @@ Node *Sum(Node *head1, Node *head2)
|
|||
|
||||
carry = sum / 10;
|
||||
}
|
||||
return (ans->next);
|
||||
return reverse(ans->next);
|
||||
}
|
||||
|
||||
int main()
|
||||
|
|
Loading…
Reference in New Issue