library(adventofcode2021)
lines <- read_segments(input_file(5))
count_intersections(lines)
count_intersections(lines, part2 = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.