mirror of
https://github.com/krahets/hello-algo.git
synced 2026-09-01 04:47:12 +00:00
refactor: use Package.swift to define executable task
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user