2023-01-06 03:39:19 +08:00
|
|
|
/**
|
2023-01-02 21:48:32 +08:00
|
|
|
* File: ListNode.swift
|
|
|
|
* Created Time: 2023-01-02
|
|
|
|
* Author: nuomi1 (nuomi1@qq.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
public class ListNode {
|
|
|
|
public var val: Int // 结点值
|
|
|
|
public var next: ListNode? // 后继结点引用
|
|
|
|
|
|
|
|
public init(x: Int) {
|
|
|
|
val = x
|
|
|
|
}
|
|
|
|
}
|