Day 19 part 2.

This commit is contained in:
2024-06-30 20:41:22 +02:00
parent 4b3b030f6e
commit 56c88ffec9
2 changed files with 73 additions and 18 deletions

View File

@@ -65,7 +65,6 @@ fn part2(input: &Field) -> usize {
current.into_iter().flatten().filter(|x| *x).count()
}
fn count_neighbors(field: &Field, x: usize, y: usize) -> usize {
let mut result = 0;
if field[x - 1][y - 1] {