mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-27 18:37:13 +00:00
build
This commit is contained in:
@@ -185,8 +185,8 @@ comments: true
|
||||
```kotlin title=""
|
||||
/* 二元樹節點類別 */
|
||||
class TreeNode(val _val: Int) { // 節點值
|
||||
val left: TreeNode? = null // 左子節點引用
|
||||
val right: TreeNode? = null // 右子節點引用
|
||||
var left: TreeNode? = null // 左子節點引用
|
||||
var right: TreeNode? = null // 右子節點引用
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user