mirror of
https://github.com/krahets/hello-algo.git
synced 2026-09-03 21:57:14 +00:00
feat: add rust codes for chapter greedy (#646)
* feat: add rust codes for chapter greedy * Update max_product_cutting.rs --------- Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
@@ -349,5 +349,25 @@ path = "chapter_divide_and_conquer/hanota.rs"
|
||||
name = "build_tree"
|
||||
path = "chapter_divide_and_conquer/build_tree.rs"
|
||||
|
||||
# Run Command: cargo run --bin coin_change_greedy
|
||||
[[bin]]
|
||||
name = "coin_change_greedy"
|
||||
path = "chapter_greedy/coin_change_greedy.rs"
|
||||
|
||||
# Run Command: cargo run --bin fractional_knapsack
|
||||
[[bin]]
|
||||
name = "fractional_knapsack"
|
||||
path = "chapter_greedy/fractional_knapsack.rs"
|
||||
|
||||
# Run Command: cargo run --bin max_capacity
|
||||
[[bin]]
|
||||
name = "max_capacity"
|
||||
path = "chapter_greedy/max_capacity.rs"
|
||||
|
||||
# Run Command: cargo run --bin max_product_cutting
|
||||
[[bin]]
|
||||
name = "max_product_cutting"
|
||||
path = "chapter_greedy/max_product_cutting.rs"
|
||||
|
||||
[dependencies]
|
||||
rand = "0.8.5"
|
||||
Reference in New Issue
Block a user