Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sankichi92 committed Dec 29, 2023
1 parent 1b73428 commit a4ddd17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 56-koko-eating-bananas/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn min_eating_speed(piles: Vec<i32>, h: i32) -> i32 {
continue 'bsearch;
}
}

let mut hours = 0;
for pile in piles.iter() {
hours += (*pile as f64 / (mid - 1) as f64).ceil() as i32;
Expand Down

0 comments on commit a4ddd17

Please sign in to comment.