mirror of
https://gitlab.com/mfocko/LeetCode.git
synced 2024-11-10 00:09:06 +01:00
18 lines
260 B
Java
18 lines
260 B
Java
|
public class TreeNode {
|
||
|
int val;
|
||
|
TreeNode left;
|
||
|
TreeNode right;
|
||
|
|
||
|
TreeNode() {}
|
||
|
|
||
|
TreeNode(int val) {
|
||
|
this.val = val;
|
||
|
}
|
||
|
|
||
|
TreeNode(int val, TreeNode left, TreeNode right) {
|
||
|
this.val = val;
|
||
|
this.left = left;
|
||
|
this.right = right;
|
||
|
}
|
||
|
}
|