1
0
Fork 0
mirror of https://gitlab.com/mfocko/LeetCode.git synced 2024-11-09 15:59:06 +01:00
LeetCode/java/TreeNode.java
Matej Focko 8ab17a79b2
java: add «145. Binary Tree Postorder Traversal»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-08-25 14:11:31 +02:00

17 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;
}
}