关于树myTree=['a',['b',['d',[],[]],['e',[],[]]],['c',['f',[],[]],[]]]的说法,何者正确?


关于树myTree=['a',['b',['d',[],[]],['e',[],[]]],['c',['f',[],[]],[]]]的说法,何者正确?

A.左子树是['b',['d',[],[]],['e',[],[]]]

B.左子树的根是'b'

C.右子树是['c',['f',[],[]],[]]

D.右子树的根是'e'

正确答案:左子树是['b',['d',[],[]],['e',[],[]]];左子树的根是'b';右子树是['c',['f',[],[]],[]]


Tag:算法与数据结构 子树 何者 时间:2022-01-19 14:01:52

相关答案