refactor: use Package.swift to define executable task

This commit is contained in:
nuomi1
2023-01-02 21:48:32 +08:00
parent 6e8954672f
commit 377200a39a
7 changed files with 169 additions and 131 deletions

View File

@@ -0,0 +1,17 @@
/*
* File: TreeNode.swift
* Created Time: 2023-01-02
* Author: nuomi1 (nuomi1@qq.com)
*/
public class TreeNode {
public var val: Int //
public var height: Int //
public var left: TreeNode? //
public var right: TreeNode? //
public init(x: Int) {
val = x
height = 0
}
}