摘要:
二叉树的前序、中序、后序遍历迭代实现 二叉树的前序遍历,迭代实现 根 左 右 思路: 1、 借用栈的结构 2、 先push(root) 3、 node = pop() 3.1、list.add( node.val ) 3.1、push( node.right ) 3.3、push( node.lef 阅读全文
posted @ 2018-06-04 20:45
奇迹迪
阅读(12961)
评论(0)
推荐(3)
浙公网安备 33010602011771号