leetcode summary 09/01
Contents
662. Maximum Width of Binary Tree
- iterative: save index of each node while queue nodes.
- recursive: dfs, keep a array of left most nodes.
640. Solve the Equation
- corner cases:
- “0x=0”
- “x=-x”
- “x=-1”
- “0x=-x”
Author Chen Tong
LastMod 2017-09-01