comp.lang.ada
 help / color / mirror / Atom feed
* Advent of Code, Day 23
@ 2020-12-28 21:48 John Perry
  2020-12-29  5:35 ` John Perry
  0 siblings, 1 reply; 2+ messages in thread
From: John Perry @ 2020-12-28 21:48 UTC (permalink / raw)


(For those who are interested. I'm a bit behind, but I don't think anyone else on Maxim's list has finished, either.)

Day 23 (Crab Cups) required some cleverness. The first puzzle is solved with a simple solution, and the second puzzle is easily generalized from it... but will take a LONG time (hours certainly, days possibly) unless you rethink the data structure.

Looking at others' solutions, it seems that Gautier, Maxim, and I have similar approaches, but all of us use slightly different data structures.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Advent of Code, Day 23
  2020-12-28 21:48 Advent of Code, Day 23 John Perry
@ 2020-12-29  5:35 ` John Perry
  0 siblings, 0 replies; 2+ messages in thread
From: John Perry @ 2020-12-29  5:35 UTC (permalink / raw)


On Monday, December 28, 2020 at 4:48:17 PM UTC-5, John Perry wrote:
> (For those who are interested. I'm a bit behind, but I don't think anyone else on Maxim's list has finished, either.) 

Correction: Gautier de Montmollin finished, and I somehow missed that.

For what it's worth, Day 24 is actually straightforward, so long as you can figure out a hexagonal map. Maxim Reznik's solution avoids the guess-and-check I applied to determine the playing field's size (which was not given, interesting enough).

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-29  5:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28 21:48 Advent of Code, Day 23 John Perry
2020-12-29  5:35 ` John Perry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox