From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.0 required=3.0 tests=BAYES_40 autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:8ec7:: with SMTP id q190mr10284417qkd.258.1607619009019; Thu, 10 Dec 2020 08:50:09 -0800 (PST) X-Received: by 2002:a05:620a:95d:: with SMTP id w29mr10083441qkw.147.1607619008749; Thu, 10 Dec 2020 08:50:08 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 10 Dec 2020 08:50:08 -0800 (PST) In-Reply-To: <254cb409-5afc-4d3c-bd87-6062450d2a85n@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2601:3c3:401:f550:7c53:7ed0:c984:6304; posting-account=JSxOkAoAAADa00TJoz2WZ_46XrZCdXeS NNTP-Posting-Host: 2601:3c3:401:f550:7c53:7ed0:c984:6304 References: <86lfe6d9ui.fsf@stephe-leake.org> <254cb409-5afc-4d3c-bd87-6062450d2a85n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9f68c8b6-0018-4722-9572-ea6041fb2bccn@googlegroups.com> Subject: Re: Advent of Code Day 8 From: John Perry Injection-Date: Thu, 10 Dec 2020 16:50:09 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:60793 List-Id: 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? ;)=20 >=20 > 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 misun= derstood 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 f= irst, 14 for the second. So unless I've misunderstood something (and the ex= ample 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 co= mments, I misread the directions.)