mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-27 02:27:12 +00:00
build
This commit is contained in:
@@ -185,8 +185,8 @@ A <u>binary tree</u> is a non-linear data structure that models the hierarchical
|
||||
```kotlin title=""
|
||||
/* Binary tree node */
|
||||
class TreeNode(val _val: Int) { // Node value
|
||||
val left: TreeNode? = null // Reference to left child node
|
||||
val right: TreeNode? = null // Reference to right child node
|
||||
var left: TreeNode? = null // Reference to left child node
|
||||
var right: TreeNode? = null // Reference to right child node
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user