mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-28 10:57:15 +00:00
build
This commit is contained in:
@@ -213,9 +213,9 @@ Since the operations related to AVL trees require obtaining node heights, we nee
|
||||
```kotlin title=""
|
||||
/* AVL tree node */
|
||||
class TreeNode(val _val: Int) { // Node value
|
||||
val height: Int = 0 // Node height
|
||||
val left: TreeNode? = null // Left child
|
||||
val right: TreeNode? = null // Right child
|
||||
var height: Int = 0 // Node height
|
||||
var left: TreeNode? = null // Left child
|
||||
var right: TreeNode? = null // Right child
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user