纯粹从概念上讲,我如何将21插入到这棵红黑树中?

发布于 2021-05-15 00:59:35
,,
开始
Compare 21 with 25 => it is less => follow to left child
Compare 21 with 15 => it is more => follow to right child
Compare 21 with 22 => it is less => follow to left child
Compare 21 with 20 => it is more => there is no right child so you insert.你应该有

https://stackoverflow.com/questions/67525819
复制相似问题