mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-11 19:30:59 +00:00
Feature/array representation of tree swift (#649)
* refactor: encode & decode Tree * style: build warning * feat: add Swift codes for array_representation_of_tree article
This commit is contained in:
@@ -89,7 +89,6 @@ class AVLTree {
|
||||
}
|
||||
|
||||
/* 插入节点 */
|
||||
@discardableResult
|
||||
func insert(val: Int) {
|
||||
root = insertHelper(node: root, val: val)
|
||||
}
|
||||
@@ -116,7 +115,6 @@ class AVLTree {
|
||||
}
|
||||
|
||||
/* 删除节点 */
|
||||
@discardableResult
|
||||
func remove(val: Int) {
|
||||
root = removeHelper(node: root, val: val)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user