3 ms·
Day 2 part 2, what is it actually asking? I can't tell from the description what the actual puzzle is... Is it that I need to generate a program that generate
by LandR 7y ago
Day 2 part 2, what is it actually asking?
I can't tell from the description what the actual puzzle is...
Is it that I need to generate a program that generates the output 19690720 when run through the function that was written in part 1?
- eachro 7y agoIn the first problem they told you what numbers to put in position 1 and 2. In the second problem you want to find the specific numbers for position 1 and 2 that yield the desired output.
- LandR 7y agoAh ok, thanks! My reading comprehension obviously needs some work :P
- bsdnoob 7y agoyou need to find value of memory[1] & memory[2] where memory is the program from first part, which gets you 19690720
- LandR 7y agoThanks, five minutes to write the code and get an answer, half an hour staring at it wondering what on earth I was actually supposed to do.... Feel like a bit of an idiot.
- alanbernstein 7y agoSo, just like most days as a programmer?