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

View File

@@ -1613,7 +1613,6 @@ AVL 树的特点在于「旋转 Rotation」操作它能够在不影响二叉
```swift title="avl_tree.swift"
/* 插入节点 */
@discardableResult
func insert(val: Int) {
root = insertHelper(node: root, val: val)
}
@@ -2067,7 +2066,6 @@ AVL 树的特点在于「旋转 Rotation」操作它能够在不影响二叉
```swift title="avl_tree.swift"
/* 删除节点 */
@discardableResult
func remove(val: Int) {
root = removeHelper(node: root, val: val)
}