connorlay

connorlay

Advent Of Code 2018

Note by the Moderators: This topic is for general discussion about the Advent of Code 2018.

To prevent people from being spoiled about specific challenges if they don’t want to, each day has been given its own topic. Please post information about a specific challenge there:


Happy December! :christmas_tree:

Is anyone here using Elixir for the 2018 Advent Of Code? I just finished the day 1 challenge and found using a functional language to be a great fit for the problem. You can see my solutions here: https://github.com/connorlay/advent_of_code_2018

Cheers!

Most Liked

sasajuric

sasajuric

Author of Elixir In Action

Even though I didn’t plan on doing AoC this year, after solving one task I got hooked :slight_smile:
Based on the experience from the past year, I decided to consolidate my solutions into a single mix project. This allowed me to extract some common helper (e.g. Enum helpers), which helped me clean up the code of the actual solutions, and make it a bit more expressive (e.g. see my take on day 1)

sneako

sneako

Looks like the streams will start tomorrow
Check out @josevalim’s Tweet:
https://twitter.com/josevalim/status/1068770108124712960?s=09

JEG2

JEG2

Author of Designing Elixir Systems with OTP

I’m working the problems in Elixir as well: https://github.com/JEG2/advent_of_code_2018

NobbZ

NobbZ

I started as well with elixir, but this year it is only my secondary language, primary is rust, I might need it for my job next year.

Its a bit sad though, that I can’t find todays livestream on twitch… @josevalim’s last activity seems to be from a week ago :frowning:

Where Next?

Popular in Challenges Top

ehayun
I have 2 arrays: a1 can be any combination of value or nil like that a1 = [1,nil,3] and array 2 the same a2 = [4,2, nil] How do I com...
New
antoine-duchenet
Everything went smoothly today. Nothing to change to solve part 2 because I already used memoization for part 1 (it looked like an AoC e...
New
Aetherus
This topic is about Day 15 of the Advent of Code 2020 . Thanks to @egze, we have a private leaderboard: https://adventofcode.com/2020/l...
New
Aetherus
Finished Day 1 with Elixir :tada: Here’s my code: #!/usr/bin/env elixir defmodule Combination do @doc "Yields each combination of 2...
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
New
adamu
Probably not the most efficient implementation, because part 1 took >1 ms and part 2 >4ms, but the code was simple enough. def p...
New
bjorng
Note: This topic is to talk about Day 4 of the Advent of Code 2019. There is a private leaderboard for elixirforum members. You can join...
New
code-shoily
Here’s my day 3 code This was quite easy. I was afraid Part 2 would be “un-regex-able” and was preparing for hand crafting automata bu...
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

lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
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
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
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
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

We're in Beta

About us Mission Statement