aoc-2018-python

Advent of Code 2018 Solutions in Python
git clone https://git.sinitax.com/sinitax/aoc-2018-python
Log | Files | Refs | README | sfeed.txt

part2 (709B)


      1--- Part Two ---
      2
      3An Elf just remembered one more important detail: the two adjacent matching digits are not part of a
      4larger group of matching digits.
      5
      6Given this additional criterion, but still ignoring the range rule, the following are now true:
      7
      8
      9 - 112233 meets these criteria because the digits never decrease and all repeated digits are exactly
     10two digits long.
     11
     12 - 123444 no longer meets the criteria (the repeated 44 is part of a larger group of 444).
     13
     14 - 111122 meets the criteria (even though 1 is repeated more than twice, it still contains a double
     1522).
     16
     17
     18How many different passwords within the range given in your puzzle input meet all of the criteria?
     19
     20