Skip to content

Latest commit

 

History

History
12 lines (6 loc) · 301 Bytes

559-yongjoonseo.md

File metadata and controls

12 lines (6 loc) · 301 Bytes

559. Maximum Depth of N-ary Tree

solution 1

시간복잡도 : O(N)

알고리즘 : BFS

풀이 설명 : nodechildren이 없을 때까지 BFS를 통해 탐색합니다. 한 층을 돌 때마다 그 횟수를 카운트하여 반환합니다.

소스코드 : link