mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-26 00:56:29 +08:00
0e49f0053a
of c, cpp, java, js, ts, swift.
14 lines
260 B
Swift
14 lines
260 B
Swift
/**
|
|
* 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
|
|
}
|
|
}
|