/* * 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 } }