comp.lang.ada
 help / color / mirror / Atom feed
From: John Perry <john.perry@usm.edu>
Subject: Re: Advent of Code Day 8
Date: Thu, 10 Dec 2020 08:50:08 -0800 (PST)	[thread overview]
Message-ID: <9f68c8b6-0018-4722-9572-ea6041fb2bccn@googlegroups.com> (raw)
In-Reply-To: <254cb409-5afc-4d3c-bd87-6062450d2a85n@googlegroups.com>

On Thursday, December 10, 2020 at 3:07:22 AM UTC-6, Maxim Reznik wrote:
> Do you consider my solution for Day 9 as brute force one? ;) 
> 
> https://github.com/reznikmm/ada-howto/blob/advent-2020/md/09/09.md

I really like this approach, but it seems equivalent. I wondered if I misunderstood the approach, so I worked it out the example problem by hand both ways, and both perform roughly the same number of "additions": 11 for the first, 14 for the second. So unless I've misunderstood something (and the example may be a bad one) this also seems brute force.

(Thanks for pointing out the error in my code, by the way. Judging by my comments, I misread the directions.)

  reply	other threads:[~2020-12-10 16:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09 20:04 Advent of Code Day 8 Stephen Leake
2020-12-09 22:44 ` John Perry
2020-12-10  8:25   ` John Perry
2020-12-10  9:07     ` Maxim Reznik
2020-12-10 16:50       ` John Perry [this message]
2020-12-10 19:24         ` Stephen Leake
2020-12-10 12:25     ` gautier...@hotmail.com
2020-12-10 19:24   ` Stephen Leake
replies disabled

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