Skip to main content

· 2 min read

First problem with a more complicated input and problem. I solved these by making a class defining a claim (containing the id, position, size) and another class defining the canvas (containing a matrix of claims touching each square inch). The claims are created by parsing each line with a regular expression.

· One min read

The first day of the advent of code challenge starts off pretty slowly. You basically just need to sum the numbers up. I've done this by just replacing the end of lines by a space and surrounding it in a LISP sum expression (+ ...).