这个程序使用前序遍历来打印二叉树的所有节点。
The program prints all nodes of the binary tree using pre-order traversal.
▼点击显示答案
pre-order英 /ˌpriːˈɔːdə/|美 /ˌpriˈɔrdər/
解释
pre-order 是由前缀 pre-(表示"在...之前")和 order(顺序)组成的复合词。
pre-order traversal 是计算机科学中的术语,指一种遍历二叉树的方法,顺序为:先访问根节点,然后递归地前序遍历左子树,最后递归地前序遍历右子树。
The program prints all nodes of the binary tree using pre-order traversal.
pre-order 是由前缀 pre-(表示"在...之前")和 order(顺序)组成的复合词。 pre-order traversal 是计算机科学中的术语,指一种遍历二叉树的方法,顺序为:先访问根节点,然后递归地前序遍历左子树,最后递归地前序遍历右子树。
在 App 中完整学习这张卡片
在 App 中学习