Which traversal method for a binary tree does the following Pascal code illustrate? ( ) Procedure traverse(p:pointer) B

admin2009-02-24  35

问题 Which traversal method for a binary tree does the following Pascal code illustrate? (    )    Procedure traverse(p:pointer)    Begin      If p<>nil        then begin          traverse(p↑.left);           process(p);           traverse(p↑.right);         end       end;

选项 A、preorder
B、postorder
C、reorder
D、inorder

答案D

解析
转载请注明原文地址:https://jikaoti.com/ti/a6E7FFFM
0

相关试题推荐
最新回复(0)