题目
递归
class Solution {
public int maxDepth(Node root) {
if (root == null) {
return 0;
}
int max = 0;
for (Node n : root.children) {
max = Math.max(max, maxDepth(n));
}
return max + 1;
}
}