mirror of
https://gitlab.com/mfocko/LeetCode.git
synced 2024-11-14 01:49:41 +01:00
18 lines
258 B
Java
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;
|
|
}
|
|
}
|
|
;
|