Added Day 14 Part 2
This commit is contained in:
parent
8693ed5225
commit
1e5d8585a9
|
@ -37,7 +37,7 @@ fn solution((template, pairs): (Vec<char>, HashMap<(char, char), char>)) -> u64
|
||||||
let a = template[i];
|
let a = template[i];
|
||||||
let b = template[i + 1];
|
let b = template[i + 1];
|
||||||
|
|
||||||
let out = recurse(&pairs, &mut memo, a, b, 10);
|
let out = recurse(&pairs, &mut memo, a, b, 40);
|
||||||
|
|
||||||
for (a, b) in map.iter_mut().zip(out.into_iter()) {
|
for (a, b) in map.iter_mut().zip(out.into_iter()) {
|
||||||
*a += b;
|
*a += b;
|
||||||
|
|
Loading…
Reference in New Issue