How would one move a node from one list to the beginning of another?
Could you point me to some code?
EDIT: I did it! And it is all thanks to this song http://www.youtube.com/watch?v=ehmFl1sjkXg
My algorithm:
1. get the predecessor of the node you wish to move (MoveNode)
2. use the predecessor to switch the MoveNode with the head of the list
3. move the MoveNode from the head of the original list to the beginning of the destination list
4. delete the head of the original list
Does anybody want code?