74
[2025 Day 5] It always be like that
(lemmy.nz)
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.
Solution Threads
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 |
Icon base by Lorc under CC BY 3.0 with modifications to add a gradient
console.log('Hello World')
it all fit in int64 tho, so could be worse
I always have this thought. I'm doing it in Rust, so I check if there are negative numbers: if not, use
usize. But I'm always terrified there will be an overflow somewhere.If I were using Kotlin or Java, I might always use
BigIntegerjust out of fear.That’s a very interesting thought! I was thinking of writing my own Rust data type that would automatically upgrade to big integer, similarly to the int type in Python.