全部题库 / VB / 试题详情
单选题 VB
2014-02-18

对下面二叉树中序遍历的结果是(  )

A.ABCDEF
B.BDAECF
C.ABDCEF
D.ABCDFE

参考答案

B

答案解析

对二叉树的中序遍历是指:首先遍历左子树,然后访问根结点,最后遍历右子树。在遍历左、右子树时,注意依旧按照"左子树-根结点-右子树"的顺序。

你可能感兴趣的试题

A.Private Sub Command1_Click()
CommonDialog1.DialogTitle ="new Caption"
CommonDialog1.ShowFont
End Sub
B.Private Sub Command1Click()
CommonDialog1.DialogTitle ="new Caption"
CommonDialog1.ShowOpen
End Sub
C.Private Sub Command1_Click()
CommonDialog1.DialogTitle ="ne w Caption"
CommonDialog1.ShowHelp
End Sub
D.Private Sub Command1_Click()
CommonDialog1.DialogTitle ="new Caption"
CommonDialog1.ShowColor
End Sub