Add solution for "Day 3: Lobby", part 2
This commit is contained in:
@@ -24,6 +24,12 @@ Firstly, we calculate directly the sum of invalid IDs composed of two identical
|
||||
|
||||
On top of that we use a cache to avoid recalculating prime factors and certain helper variables for given ID lengths and repetition counts.
|
||||
|
||||
### Day 3: Lobby
|
||||
|
||||
:mag_right: Puzzle: <https://adventofcode.com/2025/day/3>, :white_check_mark: Solver: [`Lobby`](src/solvers/lobby.rs)
|
||||
|
||||
With a continuously updated tally of the current best joltage initialized at zero, we go once through each digit string from left to right and try to maximize the digit with the highest posiible significance in our joltage as we go, as long as the less significant digits in the joltage are not more than what remains in the string. If a better digit was encountered, all less significant digits are reset to zero.
|
||||
|
||||
### Day 4: Printing Department
|
||||
|
||||
:mag_right: Puzzle: <https://adventofcode.com/2025/day/4>, :white_check_mark: Solver: [`PrintingDepartment`](src/solvers/printing_department.rs)
|
||||
|
||||
Reference in New Issue
Block a user