Although container/ring doesn't seem to work how I want, which is to be able to do the following:

1. Jump to value V
2. Move backwards or forwards P places

I think I need a layer on top because there is no built-in function to find a given value.

#AdventOfCode #golang

TIL: Go has a standard library package, container/ring, that lets you create a circular list.

Very useful for Advent of Code when I have to move left or right in a compass direction, which of course wraps around. Saves me having to write a bunch of if/switch statements to handle every possible combination.

Took me a while to find this, after searching for 'clock' and 'wrap around slice'.

#AdventOfCode #golang

A strange package has arrived. Received for my outstanding performance on last year's #AdventOfCode. Except the year is wrong on the shirt :) I suppose it's a prediction for this year's event ;-p

#Kotlin #Kodee #AoC25 #AoC26

#adventofcode 2015 in C, day 14

Once again, "reading the puzzle incorrectly" is the main source of error here, otherwise very straightforward. We get to add a bit to our parsing toolbox along the way, as a bonus.

https://notes.adfoucart.be/aocode15/day14.html

Day 14 - Velocity

One of my fondest memories when doing #AdventOfCode was a time that I just said YOLO and decided to read the input at compile time (w/ macrolet 💅) convert the line into a plist and then expand the plist into the body of a defmethod each rule mapped to a different implementation using eql specifiers.

Yes, it was a bad idea.
Yes, it was inefficient.
But #CommonLisp doesn't care, so I wrote it anyway!

https://github.com/PuercoPop/advent-of-code/blob/27fa944d2c933409610d1bb9d9bea0c13a63c00c/2015/7.lisp#L72-L112

advent-of-code/2015/7.lisp at 27fa944d2c933409610d1bb9d9bea0c13a63c00c · PuercoPop/advent-of-code

Contribute to PuercoPop/advent-of-code development by creating an account on GitHub.

GitHub

#adventofcode 2015 in C, day 13 again. Copy-pasting from day 9 was working, but a bit too ugly for my taste. So we refactor a bit, make it marginally less ugly, and finish the puzzle easily thanks, for once, to good design choices made at the beginning.

https://notes.adfoucart.be/aocode15/day13_part2.html

Day 13, part 2 - Taking a seat

#adventofcode 2015 in C, day 13.

Another graph-like structure, leading to a lot of copy-pasting from day 9.

https://notes.adfoucart.be/aocode15/day13.html

Day 13 - Taking a seat

#adventofcode 2015 in C, day 12: lots of parsing, but also an opportunity to implement a basic stack structure. Nice little puzzle overall.

https://notes.adfoucart.be/aocode15/day12.html

Day 12 - JSON Parsing

#adventofcode 2015 in C, day 10 and 11

Both quick and easy, which means that either I've become reasonably good at this C thing, or I'm being lured into a false sense of confidence.

https://notes.adfoucart.be/aocode15/day10.html

https://notes.adfoucart.be/aocode15/day11.html

Day 10 - Number game

@blinry and I are still trying to solve last year's #adventOfCode. We're stuck on day 10, and we're out of ideas – except using linear optimization algorithms, but that feels like overkill... Has anyone of you solved day 10 and has a tip for us – do we really need to implement linear optimization?
https://en.wikipedia.org/wiki/Linear_programming#Integer_unknowns

Please use a spoiler for your answers ^^'

#AOC25 #advent_of_code #adventofcode2025 #adventofcode2025day10

Linear programming - Wikipedia