Micah Halter 1e2d6497b9 | 6 months ago | |
---|---|---|
.. | ||
README.md | 7 months ago | |
answer.hs | 7 months ago | |
input | 7 months ago | |
run.sh | 6 months ago |
You arrive at the Venus fuel depot only to discover it’s protected by a password. The Elves had written the password on a sticky note, but someone threw it out.
However, they do remember a few key facts about the password:
Other than the range rule, the following are true:
How many different passwords within the range given in your puzzle input meet these criteria?
Your puzzle answer was 1079
.
An Elf just remembered one more important detail: the two adjacent matching digits are not part of a larger group of matching digits.
Given this additional criterion, but still ignoring the range rule, the following are now true:
How many different passwords within the range given in your puzzle input meet all of the criteria?
Your puzzle answer was 699
.