leetCode练习(21)

来源:互联网 发布:计算机科学及编程导论 编辑:程序博客网 时间:2024/04/29 22:10

题目:Merge Two Sorted Lists

难度:easy

问题描述:

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.

将两个已经排列好的链表整合成一个新的排列好的链表。

解题思路:很简单的一道题···没啥好说的,注意边界就好哈。

代码如下:

0 0
原创粉丝点击