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