🐳 chore(code/rust): add cargo in chapier

This commit is contained in:
xblakicex 2023-01-15 19:59:17 +01:00
parent 3d4469203b
commit 4249872e25
2 changed files with 25 additions and 13 deletions

View File

@ -1,14 +1,5 @@
[package]
name = "chapter_computational_complexity"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "time_complexity"
path = "chapter_computational_complexity/time_complexity.rs"
[[bin]]
name = "worst_best_time_complexity"
path = "chapter_computational_complexity/worst_best_time_complexity.rs"
[dependencies]
rand = "0.8.5"
[workspace]
members = [
"chapter_computational_complexity",
]

View File

@ -0,0 +1,21 @@
[package]
name = "chapter_computational_complexity"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "leetcode_two_sum"
path = "leetcode_two_sum.rs"
[[bin]]
name = "time_complexity"
path = "time_complexity.rs"
[[bin]]
name = "worst_best_time_complexity"
path = "worst_best_time_complexity.rs"
[dependencies]
rand = "0.8.5"