Leetcode 662. Maximum Width of Binary Tree (BFS level order)


Leetcode 662. Maximum Width of Binary Tree (BFS level order)

https://leetcode.com/problems/maximum-width-of-binary-tree/ Maximum Width of Binary Tree - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 다시 만난 Binary Tree 문제입니다. 이진트리의 레벨에서 최대 길이(시작 노드에서 끝노드까지의 개수)를 찾는 문제입니다. 처음에 level order traversal 임을 파악하고 BFS로 접근을 시도했는데요, 어떻게 길이의 정의를 코드화시킬 수 ..


원문링크 : Leetcode 662. Maximum Width of Binary Tree (BFS level order)