Leo Kenway

Results 2 comments of Leo Kenway

暴力求解法是不是有点问题,最后一个判断,我怎么跑的不对,感觉应当放到第二层循环里面

### python后序遍历迭代代码 ```Python stack = [] # 左侧树枝一撸到底 def pushLeftBranch(p): while (p != None): # 前序遍历代码位置 ################ ################ stack.append(p) p = p.left def postOrderTraversal(root): postorder = [] # 指向上一次遍历完的子树根节点 visited...