bjorng
Erlang Core Team
Note: This topic is to talk about Day 20 of the Advent of Code 2019.
There is a private leaderboard for elixirforum members. You can join it by following this link and entering the following code:
39276-eeb74f9a
Trending in Challenges
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
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
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
bjorng
This was a fun one! Here is my solution.
sasajuric
I found today a bit finicky. Here’s my solution. Takes about 2 seconds for part 2.
ferd
I’ve been stuck on part 1 so far where the two examples they gave work, but it tells me I’m too low on my final answer on mine.
… this hasn’t been the easiest one to debug when you just know that you’re too low.
bjorng
Some users on reddit had the same problem. Here is a reddit thread with a hint.
ferd
Nah, I believe I was careful with label order. I’ve been looking at found an issue with my labels and skipping, which I fixed to work the first example, but now fails the second…
I’ve ended up doing the second example by hand (twice!), and agreed with my code in a way that disagreed with their map. I then put my input for part 1 in the box and it passed.
So the way I counted things didn’t match the second example that can reach AA → ZZ in 58 steps, it did it in 59, same as my code. I’m still not too sure what was going on, but I’ll try the rest later for part 2.
ferd
Finally found the time to finish it. It works fine but most of my issues required a huge huge amount of time to debug because I expected them to be with the procedural parts of the BFS and turned out to be minor errors or inconsistencies across the formatting of input maps that turned out to create wildly different behaviours across runs.
It’s almost 3 hours long; I post the video for completeness, not because anyone should lose that much time watching it.