summaryrefslogtreecommitdiffstats
path: root/solutions/py/intcode.py
Commit message (Collapse)AuthorAge
* Minor refactorGustav Sörnäs2019-12-15
|
* Refactor (and faster?) intcode and day 9+13Gustav Sörnäs2019-12-14
|
* Minor speed-upsGustav Sörnäs2019-12-13
|
* Day 13 pyGustav Sörnäs2019-12-13
|
* Day 11 pyGustav Sörnäs2019-12-11
| | | | | | | | | | | I found a bug in my intcode-implementation which day 9 didn't catch. To solve it, I switched the memory from my past hybrid solution (initial memory as a list and extra memory as a dict) to a 100% dict-solution. I am not entirely sure why it didn't work before since Computer.write() checks if the write-position is outside the length, unless it got a negative address. It seems like dict is slower than list for memory so I might try to re-implement lists for (initial) memory later.
* Day 9 pyGustav Sörnäs2019-12-09
|
* Refactor intcodeGustav Sörnäs2019-12-07