sasajuric
Author of Elixir In Action
Note: This topic is to talk about Day 13 of the Advent of Code.
For general discussion about the Advent of Code 2018 and links to topics of the other days, see this topic.
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
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
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
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 8- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
sasajuric
I found today’s task somewhat tedious. I lost some time because I didn’t cover the case where the cars crash in the middle of the tick, so I got wrong results. Anyway, my solution is here.
simon
I need to do some serious refactoring and tidying up and I’ve only completed part 1 so far but my solution is here.
Part 2 should be pretty simple to solve but my guess about it involving tracking the number of ticks was wrong so I can also tidy my code up because of that a bit too.
My biggest gotcha was in that I copied and pasted my file reading code from a previous day and was trimming it so my grid was all out of alignment.
I’ll add the part two solution tomorrow morning.
JEG2
My solution to Day 13:
https://github.com/JEG2/advent_of_code_2018/blob/master/day_13/mine_cart_madness.exs
You can watch me create it in this video (for the next 14 days):
bjorng
My solution to Day 13. I struggled with collision detection for a long time. Here is the cleaned up version of my code.
sfusato
I struggled with this one. It was also a pain in the ass to debug what was wrong with the state I was building at each tick. I wish they gave more test cases to cover rather than the default one as that one was passing.
My solution is here.
snewcomer
Laborious but interesting!
https://github.com/snewcomer/advent-of-code-elixir/blob/master/day13/lib/day13.ex
simon
It wasn’t and I ended up also retro-fitting the part 2 solution to handle part 1 too. However the updated code can all be found here.
marekciupak