|
Re: Linked Lists: Insertion Sort, RECURSIVELY
Because you are traversing the list recursively it is acting somewhat like a stack.
Once you take a look at a node you return its value + the value of the next, this keeps on going until you hit the last node when you return the value of all the nodes added up.
Hopefully this clears it up.
|