public inbox for [email protected]  
help / color / mirror / Atom feed
From: Bernice Southey <[email protected]>
To: Greg Sabino Mullane <[email protected]>
Cc: [email protected]
Subject: Re: Advent of Code Day 8
Date: Tue, 16 Dec 2025 12:59:02 +0000
Message-ID: <CAEDh4nxpTobNoV8=6hqJm3gP2i6-=RvD9R9d1zh=6VrOta3gSA@mail.gmail.com> (raw)
In-Reply-To: <CAKAnmm+vumTRt8WB0OLsy7cVbYqdPW1m1EEOT26MCFPUd0JcOg@mail.gmail.com>
References: <CAEDh4nzEm2e=yFnC3UWjMVknjMvHsSX0nVtYdVZJK9NAMMaKVg@mail.gmail.com>
	<CAKAnmm+vumTRt8WB0OLsy7cVbYqdPW1m1EEOT26MCFPUd0JcOg@mail.gmail.com>

Greg Sabino Mullane <[email protected]> wrote:
> What's so wrong with brute force? :)
Yeah, a few more days of AoC changed my mind.

> In case it helps, here is my solution:
Thank you, this is very clever! I tried something similar, but with
updating the circuit in my table on every loop. It ran a couple of
minutes just to target the earliest possible full circuit for part 2.
This turned out to be the answer, but hardly satisfying. Your array
variables trick would never have occurred to me.

I found a couple of other interesting ideas on reddit. One used a
recursive function in a recursive cte, and another used hstore to
track unique boxes.

Good luck with day 10 part 2. That's the only one I gave up on after
discovering everyone was using solvers, or rolling their own. It's by
far the hardest, but one person found a brilliant way...don't forget
about part 1.

Thanks, Bernice






view thread (5+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Advent of Code Day 8
  In-Reply-To: <CAEDh4nxpTobNoV8=6hqJm3gP2i6-=RvD9R9d1zh=6VrOta3gSA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox