feat: add Swift codes for backtracking_algorithm article (#480)

* fix: compile error

* fix: package define

* feat: add Swift codes for backtracking_algorithm article
This commit is contained in:
nuomi1
2023-05-03 18:45:43 +08:00
committed by GitHub
parent ca76336a55
commit 561ef20462
7 changed files with 241 additions and 6 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ class AVLTree {
}
} else {
// = 2
let temp = node?.right
var temp = node?.right
while temp?.left != nil {
temp = temp?.left
}
@@ -132,7 +132,7 @@ class BinarySearchTree {
// = 2
else {
// cur
let tmp = cur?.right
var tmp = cur?.right
while tmp?.left != nil {
tmp = tmp?.left
}