mirror of
https://github.com/parnic/advent-of-code-2022.git
synced 2025-06-16 13:40:13 -05:00
Day 16 solution
I spent an inordinately long amount of time on part 2, only to discover a fundamental flaw in my logic. Apparently for my input set, switching to the other person every time the first person had less time remaining meant that some combinations never got tested. The solution in this commit exhausts every option for one person, then every option for the second person (or animal...) which works for my test input. I have a feeling it won't work for all, though.
This commit is contained in:
@ -69,6 +69,7 @@
|
||||
<EmbeddedResource Include="inputs\15a.txt" />
|
||||
<EmbeddedResource Include="inputs\16.txt" />
|
||||
<None Remove="inputs\17.txt" />
|
||||
<EmbeddedResource Include="inputs\16a.txt" />
|
||||
<EmbeddedResource Include="inputs\17.txt" />
|
||||
<None Remove="inputs\18.txt" />
|
||||
<EmbeddedResource Include="inputs\17a.txt" />
|
||||
|
Reference in New Issue
Block a user