655. Print Binary Tree
# Medium
Key idea: compute the height of tree, build 2D array filled with "", then use recursive to fill root.val, from root to leaf
难点: recursive 中,fill左右两边时,不应该包括当前节点的那个index
Last updated
# Medium
Key idea: compute the height of tree, build 2D array filled with "", then use recursive to fill root.val, from root to leaf
难点: recursive 中,fill左右两边时,不应该包括当前节点的那个index
Last updated
Time = , because of initilization, Space =