🤖 - 2024 DAY 24 SOLUTIONS - 🤖
https://programming.dev/post/23243817
=> More informations about this toot | More toots from CameronDev@programming.dev
Rust + Pen and Paper
Yikers. Part 2 took a while, staring at this diagram for hours. Eventually I noticed that each of these blocks has two pairs of (XOR, AND) gates sharing the same inputs (and inputs aren’t changed). So I matched up these pairs based on a distance metric of how much needs to be swapped to fit together. This helped me identify 4 blocks with errors, the rest was solved using pen and paper (one block is missing as it became apparent at that point):
There is also some code, but do yourself and me a favor and don’t look at it. While it does turn up the correct solution, it probably won’t with any other input, especially not the examples.
=> More informations about this toot | More toots from Gobbel2000@programming.dev
text/gemini
This content has been proxied by September (3851b).