21.Merge-Two-Sorted-Lists
21. Merge Two Sorted Lists
题目地址
题目描述
Merge two sorted (ascending) linked lists and return it as a new sorted list. The new sorted list should be made by splicing together the nodes of the two lists and sorted in ascending order.代码
Approach 1: Iteration
Approach 2: Recursion
Last updated