LOADING: An error occurred. Update Chrome, try Firefox, or visit this post for more details.

⚠️Reddit changed how removals work, which breaks Reveddit's website. Install the extension to track removed content:Add to chromeAdd to firefoxWhat changed?
✖︎
about reveddit
⚙F.A.Q.add-ons
r/
status
copy sharelink
[+] show filters
19
SOLUTION MEGATHREAD-❄️- 2023 Day 19 Solutions -❄️-(self.adventofcode)
submitted 2 years, 1 month ago* (edited 29 minutes after) by daggerdragon to /r/adventofcode (134.8k)
465 commentsredditother-discussionssubreddit-indexmessage modsop-focus

THE USUAL REMINDERS

  • All of our rules, FAQs, resources, etc. are in our [community wiki](https:...

... view full text

since 2 years, 1 month ago
3 of 3

Tip Reveddit Real-Time can notify you when your content is removed.

your account history
(check your username's removed content. why?)
Tip Check if your account has any removed comments.
view my removed comments
you are viewing a single comment's thread.
view all comments
[–][deleted]4 points2 years, 1 month ago* (edited 3 hours, 21 minutes after)

[LANGUAGE: Python3]

First solution this year I've been happy with enough to post.

Approach is similar to what other posters have used. Recursively build a tree to reach all of the A nodes, keeping track of criteria used to reach the A node along the way. The big thing that got me was as you slide across the criteria, you have to also keep the inversion of that criteria because it didn't match.

After you have the criteria its as easy as throwing out the possibilities that don't match. Then just do a multiplicative sum of the ranges left.

Paste Link

permalinkhide replies (1)as-of
[–]daggerdragon2 points2 years, 1 month ago* (edited 17 minutes after)

Psst: we can see your Markdown because the backticks are being incorrectly escaped. edit: 👍

permalinkparentcontexthide replies (1)author-focusas-ofpreserve
[–][deleted]1 point2 years, 1 month ago

Lol thanks.

permalinkparentcontextas-of
r/revedditremoved.substack.com
🚨 NEWS 🚨
✖︎

Important: Reddit Changed How Removals Work

A recent Reddit update makes mod-removed content disappear from profile pages, which breaks Reveddit's website.

Install the browser extension to receive removal alerts.

Add to chromeAdd to firefox

What changed?

r/revedditremoved.substack.com