二叉树遍历
2018-04-27 本文已影响0人
橙姜
根在前面就是前序遍历;在中间就是中序遍历;在后面就是后序遍历
前序遍历:根左右
中序遍历:左根右
后序遍历:左右根
https://leetcode-cn.com/explore/learn/card/data-structure-binary-tree/2/traverse-a-tree/7/
根在前面就是前序遍历;在中间就是中序遍历;在后面就是后序遍历
前序遍历:根左右
中序遍历:左根右
后序遍历:左右根
https://leetcode-cn.com/explore/learn/card/data-structure-binary-tree/2/traverse-a-tree/7/