Colin Fay 12/3/2020

Advent of Code 2020-03 with R

Read Original

colin@colinfay.me:~$ cat ~/blog/aoc-2020-03.md Solving Advent of Code 2020-03 with R [Disclaimer] Obviously, this post contains a big spoiler about Advent of Code. Instructions Step 1 The input is a map (x, y), where . is a square, # is a tree. We can move this way: 3 right (x + 3), 1 down (y - 1). The y repeats itself indefinitely. We start from the top left corner (coordinate x = nrow(map), and

0 comments
Advent of Code 2020-03 with R

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet