@@ -24,10 +24,33 @@ Other than the range rule, the following are true:
24
24
* How many different passwords* within the range given in your puzzle
25
25
input meet these criteria?
26
26
27
- Your puzzle input is ` 123257-647015 ` {.puzzle-input}.
27
+ Your puzzle answer was ` 2220 ` .
28
+
29
+ The first half of this puzzle is complete! It provides one gold star: \*
30
+
31
+ --- Part Two --- {#part2}
32
+ ----------------
33
+
34
+ An Elf just remembered one more important detail: the two adjacent
35
+ matching digits * are not part of a larger group of matching digits* .
36
+
37
+ Given this additional criterion, but still ignoring the range rule, the
38
+ following are now true:
39
+
40
+ - ` 112233 ` meets these criteria because the digits never decrease and
41
+ all repeated digits are exactly two digits long.
42
+ - ` 123444 ` no longer meets the criteria (the repeated ` 44 ` is part of
43
+ a larger group of ` 444 ` ).
44
+ - ` 111122 ` meets the criteria (even though ` 1 ` is repeated more than
45
+ twice, it still contains a double ` 22 ` ).
46
+
47
+ * How many different passwords* within the range given in your puzzle
48
+ input meet all of the criteria?
49
+
50
+ Your puzzle input is still ` 123257-647015 ` {.puzzle-input}.
28
51
29
52
Answer:
30
53
31
54
You can also [ \[ Share[ on
32
- [ Twitter] ( https://twitter.com/intent/tweet?text=%22Secure+Container%22+%2D+Day+4+%2D+Advent+of+Code+2019&url=https%3A%2F%2Fadventofcode%2Ecom%2F2019%2Fday%2F4&related=ericwastl&hashtags=AdventOfCode )
55
+ [ Twitter] ( https://twitter.com/intent/tweet?text=I%27ve+completed+Part+One+of+ %22Secure+Container%22+%2D+Day+4+%2D+Advent+of+Code+2019&url=https%3A%2F%2Fadventofcode%2Ecom%2F2019%2Fday%2F4&related=ericwastl&hashtags=AdventOfCode )
33
56
[ Mastodon] ( javascript:void(0); )] {.share-content}\] ] {.share} this puzzle.
0 commit comments