- Day 1 : I'm no regex wizard so I had to find a workaround to handle matches overlap in part two.
- Day 2 : a quick and easy one
- Day 3 : knowning where indexes start and stop is hard ๐คฃ
- Day 4 : what a lucky elf!
- Day 5 : part two was a great opportunity to use
Range
, I can't believe I got it right on the first try! - Day 6 : solved by brute force but we should be able to find an analytical solution. After all it's just a quadratic equation. UPDATE : went for it!
- Day 7 : ordering everything.
- Day 8 : keeping part two for later.
- Day 9 : part two: ok let's copy-paste and change signs ๐.
- Day 10 : well I hope I won't have to read my implementation for part two ever again!
- Day 11 : why do I keep trying with
Int
?Long
is always the solution! - Day 12 : a bit of cache can do wonders but still far from an optimized solution.
- Day 13 : we don't really need to fix the smudge.
- Day 14 : I thought it was handy that I could mutate values in a Array: helped at first and then led to headscratching behavior.
- Day 15 : I'm on a strong streak of getting the right answer on the first try. Am I jinxing myself?
- Day 16 : probably far from optimized (part two took a bit above 1s to compute) but the job is done!
- Day 17 : what a terrible implementation, but I think I got the right idea. Needs improvement though. I will tackle part two later.
- Day 18 : that's another part two for later ๐ .
- Day 19 : part two looks fun but will have to wait too!
- Day 20 : trying to catch up; can we brute force part two?
- Day 21 : quick part one
- Day 22 : ๐
- Day 23 : finally getting somewhere! Not the most efficient way to solve part two, but the job is done.
- Day 24 : solving part one with highschool mathematics... so long ago ๐ด, I had to grab my formula book!
aamiguet / advent-2023 Goto Github PK
View Code? Open in Web Editor NEWLet's go again!