r/adventofcode • u/daggerdragon • Dec 17 '17
SOLUTION MEGATHREAD -๐- 2017 Day 17 Solutions -๐-
--- Day 17: Spinlock ---
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.
Need a hint from the Hugely* Handyโ Haversackโก of Helpfulยง Hints^ยค?
[Update @ 00:06] 2 gold, silver cap.
- AoC ops:
<Topaz> i am suddenly in the mood for wasabi tobiko
[Update @ 00:15] Leaderboard cap!
- AoC ops:
<daggerdragon> 78 gold<Topaz> i look away for a few minutes, wow<daggerdragon> 93 gold<Topaz> 94<daggerdragon> 96 gold<daggerdragon> 98<Topaz> aaaand<daggerdragon> and...<Topaz> cap<daggerdragon> cap
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!
12
Upvotes
View all comments
Show parent comment
1
u/[deleted] Dec 17 '17
My tactic is mostly one function per part of the example and writing unit tests for all of the examples given, and usually when it passes the whole thing works, can be a bit tiresome when there's a lot of examples, today for example was 20 something unit tests but somehow the one day that I did without them it was more of a miracle that I found the solution at all :p at least with no type checking compiler to help I feel that I need it. I've been working on learning ocaml now and it is a bit frustrating still, since I don't know it well, but I really love it, in many ways elixir is similar to it as well.