推 kather: 第三次刪除18 父節點拉下來後underflow=>可以rotation 11/18 22:01
推 kather: 可以rotation就rotation 0.0 不能才嘗試combination 11/18 22:04
推 kather: 而第一題中 Horowitz書內的deletion是 11/18 22:21
→ kather: 先看有沒有右邊sibling 有的話看他能不能rotation 11/18 22:22
→ kather: 能則rotation 不能則把該node 右邊sibling combine 11/18 22:23
→ kather: 也就是說是先考慮與右邊合併 11/18 22:24
→ kather: 只不過你要寫成先考慮跟左邊合併也是可以啦.... 11/18 22:24
→ kather: 他那個答案跟右邊的合併應該是根據這個來的 11/18 22:26
→ maque: 明白了!謝謝! 11/19 19:19