
Advent of Code 2025 Day 2
Last Updated 27 days agoAbout
We're continuing to help Santa and his elves in their big preparation and push for Christmas with Advent of Code Day 2!
This canvas solves the Advent of Code Day 2 challenge by identifying and summing "invalid IDs" through two distinct algorithms: Part 1 detects numbers with digit sequences repeated exactly twice, while Part 2 identifies numbers with any digit pattern repeated at least twice. The workflow parses input ranges from a file, defines validation functions for both parts, runs comprehensive test suites to verify correctness, and processes all ranges to compute final sums.