Node Linked

Apr 16, 2014 at 9:08pm
Thx
Last edited on Apr 17, 2014 at 2:34am
Apr 16, 2014 at 9:09pm
CodingisFun wrote:
Somehow and somewhere doesnt show the reverse link.
I don't understand what you mean?
Apr 16, 2014 at 9:35pm
closed account (2UD8vCM9)
You'll want to make a function to insert a head for your linked list object.

In order to reverse a linked list, the easiest way (not saying the most efficient, just easiest for school projects/etc) in my opinion, is to iterate through the node and Copy the listnodes to a new linked list, but by using InsertHead for each listnode, you will be placing the node at the beginning of your new list in term reversing your list.
Topic archived. No new replies allowed.