advent_of_code_2024::day_17

Function reverse_engineer_quine

source
fn reverse_engineer_quine(computer: &Computer) -> usize
Expand description

Working from least-significant bit backwards build a bit at a time. This relies on the program having a loop where a 3-bit digit is right-shifted off the A register and corresponding single digit is outputted by the program.