This commit is contained in:
2023-02-01 10:57:38 +08:00
parent 5190b92cbb
commit 8c694f2996
3 changed files with 38 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
# 二叉搜索树
- [s0235](https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-search-tree/description/): 找两个指定节点的最近公共祖先。思路很简单,只要出现分岔(即一个在当前节点的左边,一个在当前节点的右边),那么这个分岔点就是最近公共祖先。
- [s0701](https://leetcode.cn/problems/insert-into-a-binary-search-tree/description/): 插入节点。一层一层往下找,直到发现找不到了就在这个地方插入。