Multiple Linked List in C
- by LuckySlevin
I have a problem about Linked Lists. I already know how to create structures and linked list. But now I have to create arbitrary number of linked list which are also be kept in another structure. Which means :
struct list{int x, struct list *next; };
struct parent{int x, struct list *head, struct parent *next;}
And after lists are created when i enter this input for example "123134 linked list should look like :
1 - 2 - 3 - 4
And for example 1 will contain 2-3 list inside of it, 3 will contain 1-4 list inside of it.
I need a starting point and a spark from you. So how can i do this?