For part 2, I work my way backwards. We start with A_curr = 0, and check which value x between 0 and 7 gives me for A = A_curr | x the last number of the program. There could be multiple answers. We try all of them recursively and move on to A_curr := (A_curr | x)
A nail biting race on part 2! Thank you.
For part 2, I work my way backwards. We start with A_curr = 0, and check which value x between 0 and 7 gives me for A = A_curr | x the last number of the program. There could be multiple answers. We try all of them recursively and move on to A_curr := (A_curr | x)
AOC is getting serious now