关于树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:子树 何者 说法 时间:2024-06-04 10:01:36