this post was submitted on 07 Dec 2025
39 points (95.3% liked)

Advent Of Code

1197 readers
14 users here now

An unofficial home for the advent of code community on programming.dev! Other challenges are also welcome!

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

Everybody Codes is another collection of programming puzzles with seasonal events.

EC 2025

AoC 2025

Solution Threads

M T W T F S S
1 2 3 4 5 6 7
8 9 10 11 12

Visualisations Megathread

Rules/Guidelines

Relevant Communities

Relevant Links

Credits

Icon base by Lorc under CC BY 3.0 with modifications to add a gradient

console.log('Hello World')

founded 2 years ago
MODERATORS
top 3 comments
sorted by: hot top controversial new old
[–] CameronDev@programming.dev 6 points 6 days ago (2 children)

I use usize by default, but last year there was a challenge that significantly improved performance when I switched from usize to u8 (don't recall which one though).

[–] Deebster@programming.dev 3 points 6 days ago

I normally use the "most appropriate" size, but this year I'm just using usize everywhere and it's a lot more fun. So far I haven't found any problem where it ran too slow and the problem was in my implementation and not my algorithm choice.

[–] eco_game@discuss.tchncs.de 3 points 6 days ago

I usually use Longs by default too, but this year I mostly got by with Ints, so I've stuck to Ints for less memory (my solutions tend to be rather inefficient in that regard .-.)