LeetCode/java/Node.java

19 lines
258 B
Java
Raw Normal View History

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