Description Usage Arguments Examples
best AoC ever
1 | read_packets(bits, versions = NULL)
|
bits |
input bits |
versions |
initializes to NULL but changes when called recursively |
1 2 3 4 5 6 | out <- system.file("extdata", "day16.txt", package = "adventofcode21") %>%
readLines() %>%
hex2bits() %>%
read_packets()
sum(out$versions)
out$value # 539051801941
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.