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:
nuomi1
2023-07-24 12:46:48 +08:00
committed by GitHub
parent c1adeb2399
commit 9ab4b0b15c
12 changed files with 200 additions and 32 deletions
-2
View File
@@ -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)
}