Prepare for part 2

This commit is contained in:
2023-12-18 20:32:15 +01:00
parent f15c8fbec3
commit 8faabf1220
2 changed files with 15 additions and 21 deletions

View File

@@ -33,7 +33,7 @@ fn number_ways(line: &[u8], groups: &[u8]) -> u64 {
// Either defective or maybe defective
if c != b'.' && cur_group < usize::from(group) {
next[group_pos * group_stride + cur_group as usize + 1] += ways;
next[group_pos * group_stride + cur_group + 1] += ways;
}
if c != b'#' {