DEV Community


Posted on

Advent of Code 2019, Day5, Part2


Can someone explain the various input programs provided for part 2. I see nothing is wrong with my logic in terms of implementing for part 2, but I am unsure how to check against the various input programs. It asks me to input 8 and I am supposed to obtain an output (1, if input is 8, 0 otherwise). I am not sure where this input is being checked, except for opcode 3 and 4.
Also, would the first position in memory contain the final output diagnostic code?

Thank you

Top comments (0)