MCPcopy Create free account
hub / github.com/ROUTINE-STUDY/Algorithm / Node

Class Node

LeetCode/BFS/559. Maximum Depth of N-ary Tree/Sanghoo.java:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import java.util.Queue;
7
8class Node {
9 public int val;
10 public List<Node> children;
11
12 public Node() {}
13 public Node(int _val) {
14 val = _val;
15 }
16 public Node(int _val, List<Node> _children) {
17 val = _val;
18 children = _children;
19 }
20}
21/**
22 * https://leetcode.com/problems/maximum-depth-of-n-ary-tree/
23 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected