Commit graph

1 commit

Author SHA1 Message Date
Anders Englöf Ytterström
40274ea044 Solve 2019:14 "Space Stoichiometry"
Got stuck completely at part 1. Last 2 examples
did not add up, off by 100 ore.

I did know that I had to count by overflows somehow,
but I could not manage it. After countless hours
writing a verbose debugger, I wiped the whole thing
and looked at this code for inspiration:

https://github.com/sophiebits/adventofcode/blob/master/2019/day14.py

It works by using modulus and removing all keys
in a dict except ORE.
2023-12-29 00:36:55 +01:00