Skip to content

Commit

Permalink
fix: import HeapModule
Browse files Browse the repository at this point in the history
  • Loading branch information
nuomi1 committed Oct 27, 2023
1 parent f85a709 commit de8201e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codes/swift/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ let package = Package(
.executableTarget(name: "avl_tree", dependencies: ["utils"], path: "chapter_tree", sources: ["avl_tree.swift"]),
// chapter_heap
.executableTarget(name: "my_heap", dependencies: ["utils"], path: "chapter_heap", sources: ["my_heap.swift"]),
.executableTarget(name: "top_k", dependencies: ["utils", .product(name: "Collections", package: "swift-collections")], path: "chapter_heap", sources: ["top_k.swift"]),
.executableTarget(name: "top_k", dependencies: ["utils", .product(name: "HeapModule", package: "swift-collections")], path: "chapter_heap", sources: ["top_k.swift"]),
// chapter_graph
.executableTarget(name: "graph_adjacency_matrix", dependencies: ["utils"], path: "chapter_graph", sources: ["graph_adjacency_matrix.swift"]),
.executableTarget(name: "graph_adjacency_list", dependencies: ["utils"], path: "chapter_graph", sources: ["graph_adjacency_list.swift"]),
Expand Down
2 changes: 1 addition & 1 deletion codes/swift/chapter_heap/top_k.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Author: nuomi1 (nuomi1@qq.com)
*/

import Collections
import HeapModule
import utils

/* 基于堆查找数组中最大的 k 个元素 */
Expand Down

0 comments on commit de8201e

Please sign in to comment.