Henok
Advent of Code 2025 - Day 1 Complete Just finished Day 1. The puzzle was about a safe with a dial. The dial has numbers 0 to 99 and starts at 50. We get instructions like "L68" (turn left 68 clicks) or "R48" (turn right 48 clicks). Part 1 Count how many…
Advent of Code 2025 – Day 2 Summary
The puzzle involved identifying invalid product IDs in a series of numerical ranges. Invalid IDs are defined as numbers formed by repeating a block of digits.
Part 1
Part 2
#AdventOfCode #AoC2025 #RustLang
The puzzle involved identifying invalid product IDs in a series of numerical ranges. Invalid IDs are defined as numbers formed by repeating a block of digits.
Part 1
An ID is invalid if a block repeats exactly twice. Examples include 11, 6464, and 123123. Instead of iterating over every number, I generated candidate IDs using a repeated-block formula and verified whether they fell within the specified ranges.
Part 2
The criteria expanded: an ID is now invalid if a block repeats two or more times. Examples include 12341234, 123123123, and 1111111. I checked all numbers in the ranges against possible block lengths to identify invalid IDs.
#AdventOfCode #AoC2025 #RustLang
🔥2
No AoC. No coding. No reading. No nothing
My pc just drowned in water💔
My pc just drowned in water💔
😭24👀6
Henok
No AoC. No coding. No reading. No nothing My pc just drowned in water💔
10 liters of water btw🙂
👀8😭2