Discussion thread for day 2 of the Advent of Code - https://adventofcode.com/2021/day/2
I was awake, a little after 5am but still at a time zone disadvantage!
Lost a couple of mins on the second part by copying my multi-row formula but forgetting to update part of the IF statement, and couldn't work out why I got the wrong answer so had to load in the example to check my logic when I discovered the typo in my IF.
WELL. This one was, in the end, deceptively simple. Extremely grateful for @estherb47 who helped me re-read the instructions again. *face palm*
Cheers!
NJ
Yes I managed to beat @NicoleJohnson at posting! But I think you got the solution for the second star just before me!
Tip: If you want tool golf points then you don't need the first formula tool to set the positions at 0, as the multi-row formula has the option to set rows that don't exist to zero, so for the first commands they will all be based from 0,0
Ahhh yes @cgoodman3 , but much like when I play actual golf, why hit the ball once when you can hit it three or four times instead? 🤣
Excellent tip. You get the green jacket today, particularly with your Part 1 “tool golf” solution!!
NJ
I think you can do part 1 with just 1 multi row and do the calculation at the same time as working out the movement but I didn’t have the headspace to do it this morning.
Feeling a multi-row theme so far
It took long time to understand the situation at Part2.
https://github.com/AkimasaKajitani/AdventOfCode/tree/main/2021