Module aoc::year2019::day04

source ·
Expand description

§Secure Container

We speed things up by only checking numbers that have digits in non-decreasing order for pairs. These numbers become rapidly less dense as the password value increases and there are only 3003 total of these numbers with 6 digits.

Functions§

  • Password must contain at least one pair.
  • Password must contain at least one pair that’s not part of a larger group.
  • passwords 🔒