package com.lixusheng.study.algorithm;
/**
* 节点类包含数据域,和指向下一节点的指针
*/
class ListNode {
int val;
ListNode next;
ListNode() {
}
ListNode(int val) {
this.val = val;
}
ListNode(int val, ListNode next) {
this.val = val;
this.next = next;
}
}
public class MergeList {
public static void main(
合并两个有序链表java版
最新推荐文章于 2024-04-01 09:00:40 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)