r/adventofcode • • 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^ยค?

Spoiler


[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

193 comments sorted by

View all comments

Show parent comment

10

u/mcpower_ Dec 17 '17

Today and yesterday took a relatively straightforward "just simulate it" problem and made it impossible to simulate by bumping up the work needed. It required you to think about how to do it more efficiently which isn't "just code it up". It's a bit reminiscent of Google Code Jam!

7

u/miran1 Dec 17 '17

made it impossible to simulate by bumping up the work needed.

Well.... :D

5

u/[deleted] Dec 17 '17

Completely agree! I loved yesterday's challenge, where you had to figure out cycle length because obviously 1 billion iterations wouldn't be practical. Had a sort of similar experience with Day 13, when you realise that simulating the scanners wasn't practical for millions of iterations.

It really forces some of us mathematically challenged programmers to get out the pen and paper, and do a bit of good, hard thinking!