Advent of Code

Neil Smith (AoC++) 8*

   0x0000|2019

--- Day 4: Secure Container ---

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 1955.

--- Part Two ---

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 1319.

Both parts of this puzzle are complete! They provide two gold stars: **

At this point, you should return to your Advent calendar and try another puzzle.

Your puzzle input was 134792-675810.

You can also this puzzle.