#day03 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #day03, aggregated by home.social.
-
CW: Advent of Code 2025 Day 3 solution
Day 3 done. This one was pretty easy.
My part 1 solution mostly generalized to part 2, but I ended up having to rewrite the whole function anyway because I didn't make it flexible enough. For part 1 I initially just scanned for the max digit in the whole line except for the right-most digit, then found the max digit to the right of that.
For part 2, I effectively generalized it, but had to calculate how many digits I was allowed to find the max in, and loop over each number of digits I still needed to keep room for. A little fiddly, but not too hard at all. I'm kind of curious if doing it arithmetically using a bigint would be faster or slower. My gut says that it would probably be slower, and just save a little bit of memory.
#AdventOfCode #AdventOfCode2025 #AdventOfCode2025Day3 #AdventOfCode2025Day03 #Day3 #Day03 #Rust #RustLang #Programming #Coding
-
I learned something new today. This plant is what my husband’s family’s name is derived from. It is now Borrazás, but in Catalán it is Borratja. In English it is the plant “Borage” and my mother planted it all over in the back garden in Bolinas at the farm where I grew up. Somehow it makes me feel more connected to my husband and his family even though we didn’t know each other until I was in my late 30s. #Day03 #365happydays2023 #garden #history #genealogy #plants #herbs #witchery #photgraphy