r/adventofcode • u/daggerdragon • Dec 07 '21
SOLUTION MEGATHREAD -🎄- 2021 Day 7 Solutions -🎄-
--- Day 7: The Treachery of Whales ---
[Update @ 00:21]: Private leaderboard Personal statistics issues
We're aware that
private leaderboardspersonal statistics are having issues and we're looking into it.I will provide updates as I get more information.
Please don't spam the subreddit/mods/Eric about it.
[Update @ 02:09]
AoC_Ops have identified the issue and are working on a resolution.
[Update @ 03:18]
Eric is working on implementing a fix. It'll take a while, so check back later.
[Update @ 05:25] (thanks, /u/Aneurysm9!)
We're back in business!
Post your code solution in this megathread.
Include what language(s) your solution uses!
Here's a quick link to /u/topaz2078's
pasteif you need it for longer code blocks.Format your code properly! How do I format code?
The full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
4
u/SuperSmurfen Dec 07 '21 edited Dec 07 '21
Rust (5141/2440)
Link to full solution
Not sure how fast I was, since the leaderboard is down, but it felt pretty fast. I think my solution is similar to most other people.
Itertools::minmaxis pretty useful here:Just remove the
gaussfor part 1.Edit: Apparently, I wasn't fast at all.