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
23
SOLUTION MEGATHREAD-❄️- 2024 Day 21 Solutions -❄️-(self.adventofcode)
submitted 1 year, 1 month ago* (edited 1 hour, 1 minute after) by daggerdragon to /r/adventofcode (134.8k)
401 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 1 year, 1 month ago
1 of 1

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]3 points1 year, 1 month ago

[LANGUAGE: Go]

Definitely the most challenging problem of this year (so far). Initially I didn't even know how to go about it. I was burnt out already when I had started it and the complexity of the problem statement did not help either.

The key to coming up with a solution that scales well for part 2 lies in doing the one thing I profoundly suck at... discovering subproblems. If you can discover subproblems, you can come up with a recursion. The recursion alone will get you through part 1, and implement a little cache over it and you have the part 2 solution as well.

Here's the solution for both parts. Huge thanks to Willian Y. Feng for his video solution, explained his approach really well and nudged me in the right direction.

permalinkas-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