This is a thread to discuss Day 2
https://adventofcode.com/2022/day/2
REMEMBER!
It is VERY important NOT to write any public spoilers
ALWAYS keep spoiler stuff hidden inside one of these
Summary
This text will be hidden
which you can obtain by clicking on the gear icon
I seem to have made some little mistook somewhere
My answer to part 1 is too high
I think I'll go and make a cup of coffee and then come back and see if I can spot it!
[edit at 10:05 - I've woken up now and properly implemented the scoring ]
Part 1
And now I'm getting very mixed up with part 2
[edit - turns out I just got a bit too much slap dash with my copy and pasting - all good now ]
Part 2
is this entire event just data management
bh
December 2, 2022, 6:34pm
7
cymplecy:
with my copy and pasting
Copying and pasting is a good marker of needing a procedure that does the common task!
Yes, it's a good way to improve your skill with list and HOF functions. Try the 1st week (that's escalated quickly!)
If you can't figure out how to implement an HOF function in a problem, use the for each block and try to solve the problem.