It doesn’t surprise me that competitors earned the fewest stars. This problem is downright ornery.1
- There’s a hidden twist that
<^
, when possible is always a better choice than^<
. The examples reveal that one if you dig through the details long enough, but the twist doubles down because it’s not the only pair where that happens. - The multiple levels of indirection make it pretty confusing.
- There’s a reason the puzzle master doesn’t list any solutions for Part 2: combinatorial explosion. Fortunately, each string of arrow-pad commands consists of multiple independent substrings separated by
A
s, so rather than expand the entire string count the substrings and adjust the numbers as you pass through the levels of robots.
This problem defeated me, and after several hours (where it turned out I had been on the right track!) I surrendered to the dark side of reading articles on how others solved it: this one for Part 1 and this one for Part 2.
1 downright ornery: I don’t mean that as a criticism; it’s a great problem!