knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(aoc19)

Day 4: Secure Container

Part 1

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 input is 278384-824795.

Part 2

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:

Your puzzle input is still 278384-824795.



EvgenyPetrovsky/aoc2019 documentation built on Jan. 9, 2020, 2:40 a.m.