summaryrefslogtreecommitdiff
path: root/2023/src
diff options
context:
space:
mode:
Diffstat (limited to '2023/src')
-rw-r--r--2023/src/bin/day_12.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/2023/src/bin/day_12.rs b/2023/src/bin/day_12.rs
index e29042a..e60b450 100644
--- a/2023/src/bin/day_12.rs
+++ b/2023/src/bin/day_12.rs
@@ -35,12 +35,6 @@ enum Spring {
Unknown,
}
-#[derive(Debug, Clone)]
-struct WorkingSpringRow<'a> {
- springs: &'a [Spring],
- check: &'a [u32],
-}
-
impl SpringField {
fn parser(input: &str) -> IResult<&str, Self> {
map(separated_list1(line_ending, SpringRow::parser), SpringField)(input)
@@ -87,7 +81,7 @@ impl SpringRow {
fn possibilities_count(&self) -> usize {
let optimized = self.optimize_tail();
- dbg!(optimized.possibilities_count_inner(0, 0, &mut BTreeMap::new()))
+ optimized.possibilities_count_inner(0, 0, &mut BTreeMap::new())
}
fn optimize_tail(&self) -> SpringRow {