inst/solution06.R

library(adventofcode2021)
input <- scan(input_file(6), sep = ',', quiet = TRUE)
lanternfish(input)
format(lanternfish(input, 256), scientific = FALSE)
Selbosh/adventofcode2021 documentation built on Jan. 1, 2022, 7:20 p.m.