LeetCode 589. N叉樹的前序遍歷

給定一個 N 叉樹,返回其節點值的前序遍歷。 例如,給定一個 3叉樹 :   public int maxDepth(Node root) { //1、如果根節點爲空 返回0 if (root == null) { return 0; } int maxChildHeight = 0; //2、
相關文章
相關標籤/搜索