| Author |
Sorting Methods with Linked Lists
|
Joel Cochran
Greenhorn
Joined: Sep 28, 2007
Posts: 6
|
|
I'm trying to create 3 different sorting methods (bubble, selection, insertion) that sorts the data in a linked list (custom made). I'm having big time problems with the selection and insertion. I've seen how to do this with arrays, but I just can't seem to make the swap to linked list. I've managed to get the bubble sort to work, but can't seem to get the other two (in fact, I haven't got anything for insertion yet). Here's what I have so far... Any ideas on what's wrong with the selection sort, and any hints for the insertion? Thanks for all your help!
|
 |
 |
|
|
subject: Sorting Methods with Linked Lists
|
|
|