原文:[LeetCode] Maximum Depth of N-ary Tree N叉树的最大深度

Given a n ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. For example, given a arytree: We should ...

2018-10-29 21:41 0 2235 推荐指数:

查看详情

N叉树最大深度

数据结构里面讲过:用递归,深度优先遍历或广度优先遍历都行 ...

Wed May 20 01:10:00 CST 2020 0 559
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM