Multiple Linked Lists w/HeadNode
Here is what I want to do:
1. Create a linked list
2. Create a linked list from those deleted in (1)
3. Create a linked list from those deleted in (2)
Total of 3 singly-linked lists.
1-3 have a HeadNode. I have #1 finished. To create a linked list from those deleted in the first linked list, should I use the same HeadNode - use the same structure? Or is it better to create a new HeadNode for linked list #2? If I create a new HeadNode, then I would have to create a new NodePointer.
I know I'll probably have to alter the generic Delete() node to get those that are deleted to 'go into' the second linked list. - I'm not sure how to do this yet. :confused:
Any ideas on how to approach this? Or if I'm thinking the wrong way? :o
Any help greatly appreciated! Little code snippets would be helpful too! :cool: