Brazil |> Portugal |> Spain
In part 2, the first thing that came in to mind was a sliding window, much like a CNN.
It turned out to be very simple to check for the 4 possible configurations of X-MAS
#ElixirLang #AdventOfCode
In part 2, the first thing that came in to mind was a sliding window, much like a CNN.
It turned out to be very simple to check for the 4 possible configurations of X-MAS
#ElixirLang #AdventOfCode
Instead of searching in all directions, I scan for XMAS normally and rotate the matrix (including diagonally xD)
Instead of searching in all directions, I scan for XMAS normally and rotate the matrix (including diagonally xD)
Looks like we are getting the [easy day / harded day] pattern xD.
#ElixirLang #AdventOfCode
Looks like we are getting the [easy day / harded day] pattern xD.
#ElixirLang #AdventOfCode
Here is a SmartCell I made to have the puzzle into the livebook itself, if you want to give it a try.
github.com/nettinho/smaoc
#ElixirLang
Here is a SmartCell I made to have the puzzle into the livebook itself, if you want to give it a try.
github.com/nettinho/smaoc
#ElixirLang