2021 Day 18

Author

Nathan Moore

— Day 18: Snailfish —

We need to help the snailfish with their math homework, but of course it is weird.

Add up all of the snailfish numbers from the homework assignment in the order they appear. What is the magnitude of the final sum?

library(tidyverse)

my_file <- here::here("2021", "data-2021-18.txt")
x <- readLines(my_file)

Loops! Loops and rules.

# here's another R cell for good luck

Paste part two here