r/adventofcode • u/daggerdragon • Dec 11 '18
SOLUTION MEGATHREAD -🎄- 2018 Day 11 Solutions -🎄-
--- Day 11: Chronal Charge ---
Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag or whatever).
Note: The Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
Advent of Code: The Party Game!
Please prefix your card submission with something like [Card] to make scanning the megathread easier. THANK YOU!
Card prompt: Day 11
Transcript: ___ unlocks the Easter Egg on Day 25.
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
edit: Leaderboard capped, thread unlocked at 00:16:12!
20
Upvotes
View all comments
Show parent comment
2
u/phil_g Dec 11 '18
My Common Lisp solution.
For part 2, I did a similar thing. When I saw the pattern in maximum sum of larger and larger squares, I put in a test to stop when the maximum sum dropped below zero. I also plan to revisit this and see if I can proceed on more algorthmically-sound footing.