662. Maximum Width of Binary Tree
https://leetcode.com/problems/maximum-width-of-binary-tree/
Input:
1
/ \
3 2
/ \ \
5 3 9
Output: 4
Explanation: The maximum width existing in the third level with the length 4 (5,3,null,9).Input:
1
/
3
/ \
5 3
Output: 2
Explanation: The maximum width existing in the third level with the length 2 (5,3).Thoughts
Code
Analysis
Last updated