bjorng

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

Showing Posts 1 to 6

bjorng

bjorng OP

Erlang Core Team

This was a fun one! Here is my solution.

sasajuric

sasajuric

Author of Elixir In Action

I found today a bit finicky. Here’s my solution. Takes about 2 seconds for part 2.

ferd

ferd

Author of Property-Based Testing with PropEr, LYSE, & Erlang in Anger

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

bjorng OP

Erlang Core Team

Some users on reddit had the same problem. Here is a reddit thread with a hint.

ferd

ferd

Author of Property-Based Testing with PropEr, LYSE, & Erlang in Anger

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

ferd

Author of Property-Based Testing with PropEr, LYSE, & Erlang in Anger

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.

— All posts loaded —

Where Next? Top

Trending in Challenges Top

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
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
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
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
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews