Source: Day 24: Crossed Wires
Full solution for today (spoilers!).
Part 1
Given a collection of gates of the form
arg0 (AND|OR|XOR) arg2 -> out
and input values of formx**
andy**
, what is the value ofz**
interpreted as a binary number?
Full solution for today (spoilers!).
Given a collection of gates of the form
arg0 (AND|OR|XOR) arg2 -> out
and input values of formx**
andy**
, what is the value ofz**
interpreted as a binary number?