按照课件”603 树的嵌套列表实现“的函数定义进行以下操作:
x = BinaryTree('a')insertLeft(x,'b')insertRight(x,'c')insertRight(getRightChild(x),'d')insertLeft(getRightChild(getRightChild(x)),'e')
树x的结果是?
A、['a', ['b', [], []], ['c', [], ['d', [], []]]]
B、['a', ['c', [], ['d', ['e', [], []], []]], ['b', [], []]]
C、['a', ['b', [], []], ['c', [], ['d', ['e', [], []], []]]]
D、['a', ['b', [], ['d', ['e', [], []], []]], ['c', [], []]]