-
Re: Sorting LinkedList
I had another look, ive found circular linked lists which points the last node to the first so it keeps running through, that would help me to keep running through the list but in my head i imagine that would create an infinite loop the way it is now. Also i can't find any good examples of how to implement a circular linkedlist
-
Re: Sorting LinkedList
Have you worked through the logic of what the code is doing? Play computer with it and see what it does.
Why do you expect it to go through the list more than once?
-
Re: Sorting LinkedList
Sorted! seems so simple now, i now re set the iterator and it runs back through the list until sorted.
Thanks for all the help Norm.
-
Re: Sorting LinkedList