Skip to content

先刷二叉树 #36

@yudidi

Description

@yudidi

参考,先刷二叉树 三、算法刷题指南

https://github.com/P2P-Learning/P2P_Learning/blob/master/%E7%AE%97%E6%B3%95/algo.md#%E4%BA%8C%E5%8F%89%E6%A0%91

二叉查找树 - 删除节点 详解

实际上在 3 种情况中,还有一个特例就是删除根节点,后续代码会有处理。

  1. 同时存在左右子节点
    后继节点前移 替换待删除节点。
    or
    前驱节点后移 替换待删除节点。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions