Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
Solution: classic merge sort.
Redo this (Sep. 5, 2013), bug free! Instead of tracking the previous nodes for both linked lists, use common previous node.
Solution: classic merge sort.
Redo this (Sep. 5, 2013), bug free! Instead of tracking the previous nodes for both linked lists, use common previous node.
Comments
Post a Comment