<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>AdventOfCode on mauvedeity</title><link>http://www.mauvedeity.uk/tags/adventofcode/</link><description>Recent content in AdventOfCode on mauvedeity</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Wed, 02 Dec 2026 17:29:00 +0000</lastBuildDate><atom:link href="http://www.mauvedeity.uk/tags/adventofcode/index.xml" rel="self" type="application/rss+xml"/><item><title>Advent of Code Day 2</title><link>http://www.mauvedeity.uk/blog/adventofcode-day2/</link><pubDate>Wed, 02 Dec 2026 17:29:00 +0000</pubDate><guid>http://www.mauvedeity.uk/blog/adventofcode-day2/</guid><description>&lt;p&gt;So back to &lt;a href="https://www.adventofcode/"&gt;Advent of Code&lt;/a&gt;. And yay, &lt;a href="https://adventofcode.com/2026/day/2"&gt;Day&#10;2&lt;/a&gt; went swimmingly as well.&lt;/p&gt;&#10;&lt;p&gt;The first part looked hard, but then I realised that I&amp;rsquo;d made the usual &amp;ldquo;make it&#10;look harder than it is&amp;rdquo; mistake. You don&amp;rsquo;t need to compose the whole list, just keep track of how far you&amp;rsquo;ve got each time. This was pretty straightforward with some counting of offsets. Part 1 done.&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;ve often found that Part 2 of a day&amp;rsquo;s challenge is a tweak to Part 1. For Day 1,&#10;I built a &lt;code&gt;Counter&lt;/code&gt; object and then used it to identify the most common entry:&lt;/p&gt;</description></item><item><title>Advent of Code Day 1</title><link>http://www.mauvedeity.uk/blog/adventofcode-day1/</link><pubDate>Tue, 01 Dec 2026 14:00:00 +0000</pubDate><guid>http://www.mauvedeity.uk/blog/adventofcode-day1/</guid><description>&lt;p&gt;So I&amp;rsquo;m doing &lt;a href="https://www.adventofcode.com"&gt;Advent of Code&lt;/a&gt; again this year. I&#10;am of course not a professional coder, so &lt;a href="https://github.com/mauvedeity/adventofcode/tree/main/2026"&gt;my&#10;solutions&lt;/a&gt; tend to be&#10;basic but functional.&lt;/p&gt;&#10;&lt;p&gt;For me, it&amp;rsquo;s much more about what I can learn than any kind of sensible&#10;competition with colleagues and friends. However, I do abide by the friendly&#10;rules in vogue at &lt;a href="http://www.mauvedeity.uk/pages/proudly-serving/"&gt;my employer&lt;/a&gt;. That means no&#10;discussion of the solution for day 1 until day 2, and so on. (That also means&#10;that I won&amp;rsquo;t push my solutions to the repo until the day after.)&lt;/p&gt;</description></item></channel></rss>