F
fighterman19
because in linked list each node contains only one digit like
curr->nodevalue_1= 0
curr->nodevalue_2=1
sum->nodevalue = curr->nodevalue_1 + curr->nodevalue_2
so when the number go up to >10 or >100 and the linked list need another
node (I can add the node to the front ) but how can do the sum ?
ex: 89+144 = 233
how can I add it to the sum linked list?
please help ( remember not a recursive problem)
curr->nodevalue_1= 0
curr->nodevalue_2=1
sum->nodevalue = curr->nodevalue_1 + curr->nodevalue_2
so when the number go up to >10 or >100 and the linked list need another
node (I can add the node to the front ) but how can do the sum ?
ex: 89+144 = 233
how can I add it to the sum linked list?
please help ( remember not a recursive problem)