Hi all......
Please any one have the code of the insert sort of a linked list ??
I really need it today cuz i have a test on it tomorrow:(
Printable View
Hi all......
Please any one have the code of the insert sort of a linked list ??
I really need it today cuz i have a test on it tomorrow:(
>Please any one have the code of the insert sort of a linked list ??
Well, yes I do. I've even put it online in the public domain, but don't you think that you should be doing your own homework? Cheating is bad karma.
no I'm not cheating Prelude I just have a test tomorrow on linked lists and i do know a few ideas with linked lists like sorting a linked list that already inserted and deleting a node and so on but i need to know how to do the insertion + the sort at the same time this is is the only missing idea that i don't know
>but i need to know how to do the insertion + the sort at the same time
:confused: Okay, do you want to take an existing list and sort it, or keep a list sorted as you insert into it? If it's the former, you can find my code for it on my website (or by searching these forums). If it's the latter, search the forums as that's a fairly common question.
thanx alot for helping ...i'll search and try to find it.:)