feat: add Swift codes for heap article (#306)

* feat: add Swift codes for heap article

* Update heap.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
nuomi1
2023-01-29 14:03:30 +08:00
committed by GitHub
parent 29b096d90d
commit 08bfa0669a
4 changed files with 273 additions and 3 deletions
+2
View File
@@ -27,6 +27,7 @@ let package = Package(
.executable(name: "binary_tree_dfs", targets: ["binary_tree_dfs"]),
.executable(name: "binary_search_tree", targets: ["binary_search_tree"]),
.executable(name: "avl_tree", targets: ["avl_tree"]),
.executable(name: "my_heap", targets: ["my_heap"]),
],
targets: [
.target(name: "utils", path: "utils"),
@@ -52,5 +53,6 @@ let package = Package(
.executableTarget(name: "binary_tree_dfs", dependencies: ["utils"], path: "chapter_tree", sources: ["binary_tree_dfs.swift"]),
.executableTarget(name: "binary_search_tree", dependencies: ["utils"], path: "chapter_tree", sources: ["binary_search_tree.swift"]),
.executableTarget(name: "avl_tree", dependencies: ["utils"], path: "chapter_tree", sources: ["avl_tree.swift"]),
.executableTarget(name: "my_heap", dependencies: ["utils"], path: "chapter_heap", sources: ["my_heap.swift"]),
]
)