mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-29 03:17:13 +00:00
rust and zig : add codes for chapter_dynamic_programming (#606)
* rust : add codes for chapter_dynamic_programming * zig : add codes for chapter_dynamic_programming * rust : add codes for chapter_backtracking * Update n_queens.rs --------- Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
@@ -249,5 +249,50 @@ path = "chapter_graph/graph_bfs.rs"
|
||||
name = "graph_dfs"
|
||||
path = "chapter_graph/graph_dfs.rs"
|
||||
|
||||
# Run Command: cargo run --bin coin_change
|
||||
[[bin]]
|
||||
name = "coin_change"
|
||||
path = "chapter_dynamic_programming/coin_change.rs"
|
||||
|
||||
# Run Command: cargo run --bin coin_change_ii
|
||||
[[bin]]
|
||||
name = "coin_change_ii"
|
||||
path = "chapter_dynamic_programming/coin_change_ii.rs"
|
||||
|
||||
# Run Command: cargo run --bin unbounded_knapsack
|
||||
[[bin]]
|
||||
name = "unbounded_knapsack"
|
||||
path = "chapter_dynamic_programming/unbounded_knapsack.rs"
|
||||
|
||||
# Run Command: cargo run --bin knapsack
|
||||
[[bin]]
|
||||
name = "knapsack"
|
||||
path = "chapter_dynamic_programming/knapsack.rs"
|
||||
|
||||
# Run Command: cargo run --bin min_path_sum
|
||||
[[bin]]
|
||||
name = "min_path_sum"
|
||||
path = "chapter_dynamic_programming/min_path_sum.rs"
|
||||
|
||||
# Run Command: cargo run --bin edit_distance
|
||||
[[bin]]
|
||||
name = "edit_distance"
|
||||
path = "chapter_dynamic_programming/edit_distance.rs"
|
||||
|
||||
# Run Command: cargo run --bin n_queens
|
||||
[[bin]]
|
||||
name = "n_queens"
|
||||
path = "chapter_backtracking/n_queens.rs"
|
||||
|
||||
# Run Command: cargo run --bin permutations_i
|
||||
[[bin]]
|
||||
name = "permutations_i"
|
||||
path = "chapter_backtracking/permutations_i.rs"
|
||||
|
||||
# Run Command: cargo run --bin permutations_ii
|
||||
[[bin]]
|
||||
name = "permutations_ii"
|
||||
path = "chapter_backtracking/permutations_ii.rs"
|
||||
|
||||
[dependencies]
|
||||
rand = "0.8.5"
|
||||
|
||||
Reference in New Issue
Block a user