2021 Day 23

Author

Nathan Moore

— Day 23: Amphipod —

Help organise the amphipods into their burrows.

What is the least energy required to organize the amphipods?

library(tidyverse)

my_file <- here::here("2021", "data-2021-23.txt")
x <- readLines(my_file)
Warning in readLines(my_file): incomplete final line found on
'C:/Users/NathanMoore/code/advent-of-code/2021/data-2021-23.txt'

Maybe write an explanation of the solution approach here

# here's another R cell for good luck

— Part Two —

Actually, there’s more amphipods that need organising.

Using the initial configuration from the full diagram, what is the least energy required to organize the amphipods?