From 1b89fa9c6bc7625a3ac1ad7f16b6f9bd68f5a5ec Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Sun, 11 Dec 2022 13:55:44 +0100 Subject: [PATCH] 2022 rust day 11 --- 2022/rust/src/solutions/day11.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2022/rust/src/solutions/day11.rs b/2022/rust/src/solutions/day11.rs index af1ff76..1acfc53 100644 --- a/2022/rust/src/solutions/day11.rs +++ b/2022/rust/src/solutions/day11.rs @@ -1,3 +1,4 @@ +#![allow(dead_code)] use std::collections::{BinaryHeap, HashMap, VecDeque}; use regex::Regex; use crate::utils; @@ -71,7 +72,6 @@ fn solve1(data: &Vec) -> i64 { .into_sorted_vec().iter().rev().take(2).product() } -// brb, speedrunning modular arithmetic course to solve this puzzle fn solve2(data: &Vec) -> i64 { find_inspects(&data, 10000, false) .into_sorted_vec().iter().rev().take(2).product()