2023-01-02 21:48:32 +08:00
|
|
|
// swift-tools-version: 5.7
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
name: "HelloAlgo",
|
|
|
|
products: [
|
|
|
|
.executable(name: "time_complexity", targets: ["time_complexity"]),
|
|
|
|
.executable(name: "worst_best_time_complexity", targets: ["worst_best_time_complexity"]),
|
|
|
|
.executable(name: "space_complexity", targets: ["space_complexity"]),
|
2023-01-03 22:24:50 +08:00
|
|
|
.executable(name: "leetcode_two_sum", targets: ["leetcode_two_sum"]),
|
2023-01-05 21:16:05 +08:00
|
|
|
.executable(name: "array", targets: ["array"]),
|
2023-01-08 20:22:59 +08:00
|
|
|
.executable(name: "linked_list", targets: ["linked_list"]),
|
2023-01-08 23:44:13 +08:00
|
|
|
.executable(name: "list", targets: ["list"]),
|
|
|
|
.executable(name: "my_list", targets: ["my_list"]),
|
2023-01-09 23:02:22 +08:00
|
|
|
.executable(name: "stack", targets: ["stack"]),
|
|
|
|
.executable(name: "linkedlist_stack", targets: ["linkedlist_stack"]),
|
|
|
|
.executable(name: "array_stack", targets: ["array_stack"]),
|
2023-01-11 23:48:10 +08:00
|
|
|
.executable(name: "queue", targets: ["queue"]),
|
|
|
|
.executable(name: "linkedlist_queue", targets: ["linkedlist_queue"]),
|
|
|
|
.executable(name: "array_queue", targets: ["array_queue"]),
|
2023-01-14 01:06:00 +08:00
|
|
|
.executable(name: "deque", targets: ["deque"]),
|
2023-01-17 00:02:23 +08:00
|
|
|
.executable(name: "hash_map", targets: ["hash_map"]),
|
|
|
|
.executable(name: "array_hash_map", targets: ["array_hash_map"]),
|
2023-01-18 21:34:44 +08:00
|
|
|
.executable(name: "binary_tree", targets: ["binary_tree"]),
|
2023-01-19 00:12:54 +08:00
|
|
|
.executable(name: "binary_tree_bfs", targets: ["binary_tree_bfs"]),
|
|
|
|
.executable(name: "binary_tree_dfs", targets: ["binary_tree_dfs"]),
|
2023-01-02 21:48:32 +08:00
|
|
|
],
|
|
|
|
targets: [
|
|
|
|
.target(name: "utils", path: "utils"),
|
|
|
|
.executableTarget(name: "time_complexity", path: "chapter_computational_complexity", sources: ["time_complexity.swift"]),
|
|
|
|
.executableTarget(name: "worst_best_time_complexity", path: "chapter_computational_complexity", sources: ["worst_best_time_complexity.swift"]),
|
|
|
|
.executableTarget(name: "space_complexity", dependencies: ["utils"], path: "chapter_computational_complexity", sources: ["space_complexity.swift"]),
|
2023-01-03 22:24:50 +08:00
|
|
|
.executableTarget(name: "leetcode_two_sum", path: "chapter_computational_complexity", sources: ["leetcode_two_sum.swift"]),
|
2023-01-05 21:16:05 +08:00
|
|
|
.executableTarget(name: "array", path: "chapter_array_and_linkedlist", sources: ["array.swift"]),
|
2023-01-08 20:22:59 +08:00
|
|
|
.executableTarget(name: "linked_list", dependencies: ["utils"], path: "chapter_array_and_linkedlist", sources: ["linked_list.swift"]),
|
2023-01-08 23:44:13 +08:00
|
|
|
.executableTarget(name: "list", path: "chapter_array_and_linkedlist", sources: ["list.swift"]),
|
|
|
|
.executableTarget(name: "my_list", path: "chapter_array_and_linkedlist", sources: ["my_list.swift"]),
|
2023-01-09 23:02:22 +08:00
|
|
|
.executableTarget(name: "stack", path: "chapter_stack_and_queue", sources: ["stack.swift"]),
|
|
|
|
.executableTarget(name: "linkedlist_stack", dependencies: ["utils"], path: "chapter_stack_and_queue", sources: ["linkedlist_stack.swift"]),
|
|
|
|
.executableTarget(name: "array_stack", path: "chapter_stack_and_queue", sources: ["array_stack.swift"]),
|
2023-01-11 23:48:10 +08:00
|
|
|
.executableTarget(name: "queue", path: "chapter_stack_and_queue", sources: ["queue.swift"]),
|
|
|
|
.executableTarget(name: "linkedlist_queue", dependencies: ["utils"], path: "chapter_stack_and_queue", sources: ["linkedlist_queue.swift"]),
|
|
|
|
.executableTarget(name: "array_queue", path: "chapter_stack_and_queue", sources: ["array_queue.swift"]),
|
2023-01-14 01:06:00 +08:00
|
|
|
.executableTarget(name: "deque", path: "chapter_stack_and_queue", sources: ["deque.swift"]),
|
2023-01-17 00:02:23 +08:00
|
|
|
.executableTarget(name: "hash_map", dependencies: ["utils"], path: "chapter_hashing", sources: ["hash_map.swift"]),
|
|
|
|
.executableTarget(name: "array_hash_map", path: "chapter_hashing", sources: ["array_hash_map.swift"]),
|
2023-01-18 21:34:44 +08:00
|
|
|
.executableTarget(name: "binary_tree", dependencies: ["utils"], path: "chapter_tree", sources: ["binary_tree.swift"]),
|
2023-01-19 00:12:54 +08:00
|
|
|
.executableTarget(name: "binary_tree_bfs", dependencies: ["utils"], path: "chapter_tree", sources: ["binary_tree_bfs.swift"]),
|
|
|
|
.executableTarget(name: "binary_tree_dfs", dependencies: ["utils"], path: "chapter_tree", sources: ["binary_tree_dfs.swift"]),
|
2023-01-02 21:48:32 +08:00
|
|
|
]
|
|
|
|
)
|