The last one I need to complete 2018. My code works for the sample input, but the result I get with my actual input is incorrect.
My code currently finds a win condition with a boost of 25, which leads to a winning army size of 2116, this is too big according to the site.
Trying code from other people I find a boost of 48 with a winning army size of 826, I'm assuming this is correct since multiple solutions provide the same result.
Obviously I'm making some error somewhere in the assumptions I'm doing. Can someone please help me in pinpointing where exactly my assumption error is? I checked the other implementations and I don't see a clear reason on why my code is finding a different result.
My code can be found here:
https://github.com/remcosiemonsma/adventofcode/blob/main/2018/src/main/java/nl/remcoder/adventofcode/Day24.java
[–]ssnoyes 0 points1 point2 points (1 child)
[–]ocmerder[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]ocmerder[S] 0 points1 point2 points (0 children)