Day 11 solution
Pretty happy with this one overall. I tripped myself up on part 2 and caused a huge headache by not realizing that I was passing the already-modified array from part 1 into part 2. I left some code to copy the 2d array because that was my original solution (and it's not straightforward to copy jagged arrays), but then realized that the synchronized flash doesn't happen until after step 100 (at least for my input and the demo input) so we can just account for that in part 2 and pick up where part 1 left off.
This commit is contained in:
10
inputs/11.txt
Normal file
10
inputs/11.txt
Normal file
@ -0,0 +1,10 @@
|
||||
3265255276
|
||||
1537412665
|
||||
7335746422
|
||||
6426325658
|
||||
3854434364
|
||||
8717377486
|
||||
4522286326
|
||||
6337772845
|
||||
8824387665
|
||||
6351586484
|
Reference in New Issue
Block a user