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

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.

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?

Popular in Challenges Top

JEG2
Note: This topic is to talk about Day 9 of the Advent of Code. For general discussion about the Advent of Code 2018 and links to topics ...
New
bjorng
Note: This topic is to talk about Day 1 of the Advent of Code 2019.
New
New
bjorng
This topic is about Day 18 of the Advent of Code 2021. We have a private leaderboard (shared with users of Erlang Forums): https://adve...
New
Aetherus
This topic is about Day 5 of the Advent of Code 2020 . Thanks to @egze, we have a private leaderboard: https://adventofcode.com/2020/le...
New
bjorng
Note: This topic is to talk about Day 12 of the Advent of Code 2019. There is a private leaderboard for elixirforum members. You can joi...
New
bjorng
Note: This topic is to talk about Day 23 of the Advent of Code. For general discussion about the Advent of Code 2018 and links to topics...
New
code-shoily
Just did part 1. Part 2 seems to be demanding too much of my reading time so will get to that after I am done with some chores. Oh here ...
New
bjorng
Note: This topic is to talk about Day 18 of the Advent of Code 2019. There is a private leaderboard for elixirforum members. You can joi...
New
rvnash
Anyone have a solution to Part 2 today? Part 1 was straight forward, but I can’t figure out a programatic way to do part 2. I understand ...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
magnetic
Hey :wave:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New

We're in Beta

About us Mission Statement