This repository contains solutions for the Advent of Code challenges.
Extracts calibration values from a document by combining first and last digits from each line.
To run the solution:
python -m day1.part1
To run tests:
pytest day1/test_part1.py -v
Enhances calibration value extraction to handle both numeric digits and spelled-out numbers (e.g., "one", "two", etc.). Handles overlapping cases and combines first and last found digits.
To run the solution:
python -m day1.part2
To run tests:
pytest day1/test_part2.py -v
Analyzes records of cube games to determine which games would be possible with a limited set of colored cubes.
Determines which games would have been possible if the bag contained:
To run the solution:
python -m day2.part1
To run tests:
pytest day2/test_part1.py -v
.
└── day1/
├── __init__.py
├── part1.py
├── part2.py
├── test_part1.py
├── test_part2.py
└── input.txt