LeetCode/java/Node.java
Matej Focko 601c8144e2
java: add «590. N-ary Tree Postorder Traversal»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-08-26 11:31:42 +02:00

18 lines
258 B
Java

import java.util.List;
public class Node {
public int val;
public List<Node> children;
public Node() {}
public Node(int _val) {
val = _val;
}
public Node(int _val, List<Node> _children) {
val = _val;
children = _children;
}
}
;