Wednesday, July 9, 2014

[Leetcode] Merge Two Sorted List


Problem

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.

Algorithm

Dummy head is a handy choice for linked list. 
Remember this concise code of merge two linked list. 

Code



No comments:

Post a Comment