This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Today I'm especially grateful for bridge engineers and concrete.
And because my brain is (unfortunately) still wide awake, here's a visual representation of how the rope tail moved in part 2. I enjoy graphing unusual kinds of coordinates with the spatial tools like in weekly challenge #95
hope have time to simply it.
I will post my solution later once I annotated everything properly after work, but I wanted to share this little animation first (I hope GIFs work in the Community). Why did I build it? After spending roughly 2h with various approaches (including deleting everything twice), I decided to spend 30-40 minutes with an Excel file to visualize my input and check what was going wrong. Animation is posted in the spoiler.
GIF of the video (Alteryx has to approve the video ...)
It is getting tougher after every day and we are only at D9...
I opted to use iterative macro for ease of reading and debugging. My first attempt was not efficient, which after "refractor" decreased the runtime by 4x.
2) Step 2: Actual solving
First iterative macro:
Second "standard" macro. This is used simply to wrap the 1st iterative macro before feeding it into another iterative macro (see note below).
Third macro, which is iterative
The strangest thing is for some reason, I cannot seem to be able to directly use an iterative macro in an iterative macro (the iteration keeps running even though there is nothing to loop). But if the 1st iterative macro is wrapped in a standard macro and that standard macro is used in a 2nd iterative macro then it works perfectly...
It is strictly not AoC related, but if you want to take a look and help me figure out the mystery, the workflow is attached ^-^
I can come back. Part 2 is solved.
It seems that my approach is the same as a @clmc9601 's one. Today, It took a long time for debugging.
Macro: This macro is for only shorten the loop.
https://github.com/AkimasaKajitani/AdventOfCode/tree/main/2022
Well this is one where I'm just glad I'm done.
Part2 Macro: