Hello
I want to make sets of linked list I know how to write single linked list but i want to make
sets of single linked list
please answer me :)
Printable View
Hello
I want to make sets of linked list I know how to write single linked list but i want to make
sets of single linked list
please answer me :)
I wish you good luck and have fun with that.Quote:
I want to make sets of linked list
*applause*Quote:
I know how to write single linked list
Yes you mentioned that earlier.Quote:
but i want to make sets of single linked list
Where's the question?Quote:
please answer me
OK
how can I do set of single linked list؟
Thanks.
Like the way you got that backward irony-question mark in there.
The answer is "the same way you make a set of anything else". It depends on what you mean by "set" I suppose. Normally a set is just a collection of distinct objects (i.e., if you try to add the same thing to the set twice, it just gets ignored the second time). So you'll have to decide what it means for two linked lists to be "different". Once you've worked that out, then you'll have to decide how much of your linked list needs to be in the set. The whole linked list? Just the head node? When you need to modify your linked lists, how are you going to keep that sync'ed up with your set?