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 23 Solutions -❄️-(self.adventofcode)
submitted 1 year ago* (edited 5 minutes after) by daggerdragon to /r/adventofcode (134.8k)
506 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 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]4 points1 year ago

[LANGUAGE: Go]

Learned something completely new today.

Part One: Part one was easy, since a cycle of 3 isn't too big of an ask, I did a brute force and it worked perfectly. No optimizations needed whatsoever.

Part Two: Looking at the number of edges in the graph, I wasn't so sure if yet another brute force would work. I knew how I'd go about it but just to be sure, I did some quick Googling to see if there exists a standardized algorithm for this problem and the Bron-Kerbosch algorithm popped up.

Long story short, I spent the next hour and a half learning about the algorithm, how to implement it, what exactly it does and how it's (generally) a step up from Brute Force. Fun day today, learned quite a few new things about Graph theory and cliques.

Here is my solution for both parts. It's the standard recursive backtracking implementation for Bron-Kerbosch(although I'll be looking into the pivot one too, just later).

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