This topic created in 3871 days ago, the information mentioned may be changed or developed.
 |
|
remove 的时候 第一个 if 里少了 node.right.left = null; 第二个 if 里少了 node.left.right = null; 最后一个 else 里少了 node.right = null;node.left = null;
|
 |
|
啊,确实是啊,我以为把 node 变成 null ;左边或右边就不用管了呢,啊谢谢啊啊
|