mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-14 10:20:40 +08:00
cargo fmt rust code (#1131)
* cargo fmt code * Add empty line to seperate unrelated comments * Fix review * Update bubble_sort.rs * Update merge_sort.rs --------- Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
@@ -46,8 +46,8 @@ fn unbounded_knapsack_dp_comp(wgt: &[i32], val: &[i32], cap: usize) -> i32 {
|
||||
|
||||
/* Driver Code */
|
||||
pub fn main() {
|
||||
let wgt = [ 1, 2, 3 ];
|
||||
let val = [ 5, 11, 15 ];
|
||||
let wgt = [1, 2, 3];
|
||||
let val = [5, 11, 15];
|
||||
let cap: usize = 4;
|
||||
|
||||
// 动态规划
|
||||
|
||||
Reference in New Issue
Block a user