The seventh problem was yet another twist of the
Intcode machine. This time we needed to handle multiple “processes” where output from one process was wired to input of another process. To achieve this I had to do a bit of refactoring since now execution of a program must be able to stop and wait for more input. The problem was more tedious than challenging - and in the end part 2 could be run in around 15 seconds.
Today’s solution puts the
Intcode machine in a separate
namespace which simplifies the code a bit.
My solution is here…