Advent of Code 2019 Solution Megathread - Day 7: Amplification Circuit

Jon Bristow - Dec 7 '19 - - Dev Community

Did you get your IntCode machine just right on Day 5? Well, too bad, it was wrong.

Day 7 - The Problem

Looks like we need more power. And we're given some more parts to fix up our module to scrape a few more Joules out here and there. Unfortunately, our supply elves forgot to send us the documentation, and we have to find the optimal solution ourselves.

Part 1 is about finding the permutation of amplifiers that gives us the best output. Oh, and your IntCode compiler needs to be able to take multiple inputs now.

Part 2 decides that we need to create a feedback loop. I'm interested to see what people come up with for this one. Maybe we can fake the async?

This one swerves right back into hard territory for me. At the time of posting this, I've only solved part 1, and I may not be able to return to part 2 until Sunday! Calamity! (Ah well, such is life!)

Ongoing Meta

Dev.to List of Leaderboards

If you were part of Ryan Palo's leaderboard last year, you're still a member of that!

If you want me to add your leaderboard code to this page, reply to one of these posts and/or send me a DM containing your code and any theming or notes you’d like me to add. (You can find your private leaderboard code on your "Private Leaderboard" page.)

I'll edit in any leaderboards that people want to post, along with any description for the kinds of people you want to have on it. (My leaderboard is being used as my office's leaderboard.) And if I get something wrong, please call me out or message me and I’ll fix it ASAP.

There's no limit to the number of leaderboards you can join, so there's no problem belonging to a "Beginner" and a language specific one if you want.

Neat Statistics

I'm planning on adding some statistics, but other than "what languages did we see yesterday" does anyone have any ideas?

Languages Seen On Day 06

  • JavaScript × 4
  • Python × 2
  • Clojure × 1
  • Elixir × 1
  • Java × 1
  • Kotlin × 1
  • PHP × 1
  • Prolog × 1
  • Swift × 1

Many thanks to special guest stat compiler Massimo Artizzu

. . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player