2021-02-04 14:41:57 +08:00
|
|
|
package com.code.leet.entiy;
|
|
|
|
|
2021-02-09 15:54:39 +08:00
|
|
|
|
2021-02-04 14:41:57 +08:00
|
|
|
/**
|
|
|
|
* @Author: hyy
|
|
|
|
* @Date: 2020-02-13 18:25
|
|
|
|
*/
|
|
|
|
public class TreeNode {
|
|
|
|
public TreeNode left;
|
2021-02-09 15:54:39 +08:00
|
|
|
public Integer val;
|
2021-02-04 14:41:57 +08:00
|
|
|
public TreeNode right;
|
2021-02-09 15:54:39 +08:00
|
|
|
|
|
|
|
TreeNode() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public TreeNode(int val) {
|
|
|
|
this.val = val;
|
|
|
|
}
|
|
|
|
|
|
|
|
TreeNode(int val, TreeNode left, TreeNode right) {
|
|
|
|
this.val = val;
|
|
|
|
this.left = left;
|
|
|
|
this.right = right;
|
|
|
|
}
|
2021-02-04 14:41:57 +08:00
|
|
|
}
|