mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-22 15:53:50 +08:00
Merge branch 'master' into master
This commit is contained in:
8
codes/java/include/TreeNode.java
Executable file → Normal file
8
codes/java/include/TreeNode.java
Executable file → Normal file
@ -12,10 +12,10 @@ import java.util.*;
|
||||
* Definition for a binary tree node.
|
||||
*/
|
||||
public class TreeNode {
|
||||
public int val;
|
||||
public int height;
|
||||
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