You have to ask what the purpose is of not linking to the head node in those sublists however, for the purpose given by the OP. I also have a hard time, (of the top of my head) to figure out any...
Type: Posts; User: Subsonics
You have to ask what the purpose is of not linking to the head node in those sublists however, for the purpose given by the OP. I also have a hard time, (of the top of my head) to figure out any...
The question related to your node and the members parent, child specifically. When you create your list (depending on if you have a special head node or not) could look like this:
struct node...
No. Where ever you create the list you are going to have 1 reference to it, therefor 1 reference is enough in the nodes as well. It's not going to be a singly linked list because (your) nodes...
What is the purpose of the parent, child members? If there is no special head struct, surely something like struct node *list; will be enough.
Do you know how to create a list? If you do, then you should be able to do it. A typical example node consists of a data element and a link element. In this case you need the data to be another list,...