bjorng

bjorng

Erlang Core Team

Advent of Code 2019 - Day 24

Note: This topic is to talk about Day 24 of the Advent of Code 2019.

There is a private leaderboard for elixirforum members. You can join it by following this linkand entering the following code:

39276-eeb74f9a

Most Liked Switch mode

bjorng

bjorng

Erlang Core Team

A fun one and much easier parsing than the donut maze on Pluto. It still took me a while to find and fix all the bugs for the edge and corner cases (pun intended).

Here is my solution.

sb8244

sb8244

Author of Real-Time Phoenix

I thought this was a pretty creative problem, and conceptually simple to grasp. A good one for the end.

For part 2 I was a bit lazy and just hard coded the interesting neighbors with pattern matching. It was a bit of a pain when I pasted without updating, and then had to figure out why it was giving me the wrong answers.

https://github.com/sb8244/advent-of-code-2019/blob/master/lib/24.ex

sasajuric

sasajuric

Author of Elixir In Action

I really disliked this problem (well, part 2 of it), to the point that I decided not to deal with it yesterday. I found it quite finicky, and otherwise not really challenging. My solution is here. The only semi-interesting thing is the part where I resolve inner/outer adjacent tiles at compile time. I’m not particularly happy with the code in general, nor with the running time (it takes about 2 seconds for the second part), but I don’t feel like improving it.

Where Next?

Trending in Challenges Top

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement