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.
No comments:
Post a Comment