r/adventofcode • u/daggerdragon • Dec 17 '19
SOLUTION MEGATHREAD -🎄- 2019 Day 17 Solutions -🎄-
--- Day 17: Set and Forget ---
Post your full code solution using /u/topaz2078's paste or other external repo.
- Please do NOT post your full code (unless it is very short)
- If you do, use old.reddit's four-spaces formatting, NOT new.reddit's triple backticks formatting.
(Full posting rules are HERE if you need a refresher).
Reminder: Top-level posts in Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
Advent of Code's Poems for Programmers
Note: If you submit a poem, please add [POEM] somewhere nearby to make it easier for us moderators to ensure that we include your poem for voting consideration.
Day 16's winner #1: "O FFT" by /u/ExtremeBreakfast5!
long poem, see it here
Enjoy your Reddit Silver, and good luck with the rest of the Advent of Code!
View all comments
Show parent comment
2
u/FogLander Dec 17 '19 edited Dec 17 '19
for what it's worth, I was able to manually find a solution (fitting the length requirements for each subprogram) by hand for the path you have listed in main3... but only by changing the final 'R7' instruction in your path to 'R6' (looks like you probably have an off-by-one error somewhere).
It was definitely a bit trickier than the one from my input to find a valid solution.
Spoiler (so you can figure it out yourself if you want to):
A = L,6,R,12,L,4,L,6
B = R,6,L,6,R,12
C = L,6,L,10,L,10,R,6
main routine: A,B,B,C,A,B,C,A,B,C