数据结构,二叉树左右子树交换,递归算法

2025年03月22日 23:29
有1个网友回答
网友(1):

root不为null并不能保证root的child不为null,如果为null那么试图访问child的x成员时就会崩溃。