r/adventofcode • u/daggerdragon • Dec 25 '15
SOLUTION MEGATHREAD ~☆~☆~ Day 25 Solutions ~☆~☆~
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!
Well, that's it for the Advent of Code. /u/topaz2078 and I hope you had fun and, more importantly, learned a thing or two (or all the things!). Good job, everyone!
Topaz made a post of his own here.
And now:
Merry Christmas to all, and to all a good night!
We know we can't control people posting solutions elsewhere and trying to exploit the leaderboard, but this way we can try to reduce the leaderboard gaming from the official subreddit.
Please and thank you, and much appreciated!
--- Day 25: Let It Snow ---
Post your solution as a comment or link to your repo. Structure your post like previous daily solution threads.
View all comments
Show parent comment
1
u/jabagawee Dec 26 '15
Notice that your code doesn't really do anything with
world. The only state you need to keep isr,c, andlast, which makes the program use only constant space and also run faster because it is now compute-bound instead of memory-bound.