This commit is contained in:
krahets
2023-07-24 13:09:43 +08:00
parent debd909387
commit 0760e0865e
14 changed files with 715 additions and 38 deletions
-1
View File
@@ -1103,7 +1103,6 @@ comments: true
```swift title="binary_search_tree.swift"
/* 删除节点 */
@discardableResult
func remove(num: Int) {
// 若树为空,直接提前返回
if root == nil {