mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-22 15:53:50 +08:00
Update avl_tree.java
This commit is contained in:
@ -12,9 +12,10 @@ import java.util.*;
|
||||
* Definition for a binary tree node.
|
||||
*/
|
||||
public class TreeNode {
|
||||
public int val;
|
||||
public TreeNode left;
|
||||
public TreeNode right;
|
||||
public int val; // 结点值
|
||||
public int height; // 结点高度
|
||||
public TreeNode left; // 左子结点引用
|
||||
public TreeNode right; // 右子结点引用
|
||||
|
||||
public TreeNode(int x) {
|
||||
val = x;
|
||||
|
Reference in New Issue
Block a user