Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个带有一些整数值的二叉树,我可以通过我的代码搜索树。但我不知道如何进行删除节点操作。
那么,如何删除节点?
Wikipedia entry - Binary Search Tree - 解释了如何实现 BST 操作。
删除:有几种情况需要考虑: