Linked list sorting method in java
View Single Post
Feb22-12, 01:20 AM
1. Try moving the nodes without copying the data (ie. don't make new nodes).
2. You need to keep sight of the node before the select move target node, so that you can re-make the links in the original list after you move the target node.