mirror of
https://codeberg.org/JasterV/aoc_2021.git
synced 2026-04-26 18:40:05 +00:00
removes a variable
This commit is contained in:
parent
6d8fbf818f
commit
6028321cf4
1 changed files with 2 additions and 4 deletions
|
|
@ -9,12 +9,10 @@ const INPUT_PATH: &'static str = "./input.txt";
|
|||
fn main() -> Result<()> {
|
||||
let depths = read_depths(INPUT_PATH)?;
|
||||
// First puzzle
|
||||
let increases = count_increases(&depths);
|
||||
println!("First puzzle {0}", increases);
|
||||
println!("First puzzle {0}", count_increases(&depths));
|
||||
// Second puzzle
|
||||
let sliding_window_sums = calculate_sliding_window_sums(&depths, 3);
|
||||
let increases = count_increases(&sliding_window_sums);
|
||||
println!("Second puzzle {0}", increases);
|
||||
println!("Second puzzle {0}", count_increases(&sliding_window_sums));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue