This commit is contained in:
krahets
2026-08-18 03:09:22 +08:00
parent d8c34d88b5
commit ba5285949b
108 changed files with 237 additions and 229 deletions
+3 -3
View File
@@ -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
}
```