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

2025-03-22 23:29:38
推荐回答(1个)
回答1:

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