Welcome to 2026! A pretty simple puzzle for day 1, as usual, and thankfully part 2 is likely trivial if you get part 1.
Both solutions
Pretty straightforward in C#; just chaining together a lot of standard library functions. Theoretically, you could maybe make some optimizations by _not_ sorting the entire list, and manually calculating the top or bottom three only. But sorting a list of this size is already so fast that it's not really worth it.
My solutions may not be as elegant because I'm using this as an opportunity to learn the language. And for what I've seen, there's a lot of wheel reinventing in Scheme.
I was originally planning on learning a new language for AoC this year, but I don't have as much time as I'd hoped, so since I've continued to work with it for personal projects I'm doing it in Lily again. There have been some significant additions and changes to the language since last December, though none of them matter for such a simple puzzle.
Solution (Lily)
#[
Advent of Code 2026
Day 01: Dusty Shed
]#
var counts: Hash[Integer, Integer] = []
for line in File.read_to_string("inputs/day_01.txt").split("\n"): {
if line == "": {
break
}
var id = line.parse_i().unwrap()
if counts.has_key(id): {
counts[id] += 1
else:
counts[id] = 1
}
}
var sorted = counts.keys().sort(|a, b| counts[a] - counts[b])
print("Part 1: {}\nPart 2: {}".format(
sorted[-1] * sorted[-2] * sorted[-3], sorted[0] * sorted[1] * sorted[2]
))
Forgot all about it this year! Thanks for posting it. I’m relieved to see it’s still happening even as AI is actively flipping the table.
Normally I share my code here, fresh from the TypeScript harness I use to build and run AoC solutions. Today was more ad hoc, I just whipped up a few lines of vanilla JS in Notepad and ran it directly. Very simple today.
I'm extra excited for it this year since I have been barely writing any code at work (very sad tbh), so I'm itching to actually solve some puzzles by hand. I miss doing this kind of pure programming!
[OP] fidwell | 6 hours ago
Sorry for hijacking, but no one has started this year's AoC threads yet. Hopefully that doesn't mean everyone else has lost interest!
Banazir | 3 hours ago
I'm using Lua as usual, partially because I never get past the first day or two and I'm a very basic scripter.
Both parts
tomf | an hour ago
I could do this shorter but it'd be uglier.
Google Sheets: Part 1 and 2
[OP] fidwell | 5 hours ago
Welcome to 2026! A pretty simple puzzle for day 1, as usual, and thankfully part 2 is likely trivial if you get part 1.
Both solutions
Pretty straightforward in C#; just chaining together a lot of standard library functions. Theoretically, you could maybe make some optimizations by _not_ sorting the entire list, and manually calculating the top or bottom three only. But sorting a list of this size is already so fast that it's not really worth it.Kremor | 4 hours ago
I'm using Guile to solve the problems.
My solutions may not be as elegant because I'm using this as an opportunity to learn the language. And for what I've seen, there's a lot of wheel reinventing in Scheme.
Day 1: Dusty Shed
lily | 3 hours ago
I was originally planning on learning a new language for AoC this year, but I don't have as much time as I'd hoped, so since I've continued to work with it for personal projects I'm doing it in Lily again. There have been some significant additions and changes to the language since last December, though none of them matter for such a simple puzzle.
Solution (Lily)
balooga | 3 hours ago
Forgot all about it this year! Thanks for posting it. I’m relieved to see it’s still happening even as AI is actively flipping the table.
Normally I share my code here, fresh from the TypeScript harness I use to build and run AoC solutions. Today was more ad hoc, I just whipped up a few lines of vanilla JS in Notepad and ran it directly. Very simple today.
[OP] fidwell | 3 hours ago
I'm extra excited for it this year since I have been barely writing any code at work (very sad tbh), so I'm itching to actually solve some puzzles by hand. I miss doing this kind of pure programming!
vsczpv | 2 hours ago
Obligatory Rust version. I tried making it all functional-ly looking but the
fors just look better:Both Parts (Rust)
kari | 4 hours ago
Pretty short but, because I love to learn a new language for AoC, took me a bit to get started. Gleam seems fun so far :)
Both parts
I'm not 100% sure how idiomatic it is but I tried to be functional?