secure_container: Secure Container

Description Usage Arguments Details Examples

View source: R/04-secure-container.R

Description

Find password with following rules:

Usage

1
secure_container(min, max = min, no_large_group = FALSE)

Arguments

min, max

range of password

no_large_group

Details

- It is a six-digit number. - The value is within the range given in your puzzle input. - Two adjacent digits are the same (like 22 in 122345). - Going from left to right, the digits never decrease; they only ever increase or stay the same (like 111123 or 135679).

If no_large_group is defined, the two adjacent matching digits are not part of a larger group of matching digits.

Examples

1
2
secure_container(245318, 765747)
secure_container(245318, 765747, no_large_group = TRUE)

denrou/adventofcode2019 documentation built on Dec. 7, 2019, 12:25 a.m.