woojiahao
Got top 1000 for part 1, part 2 was super long so I took a while to understand it. Pretty fun day overall!
https://github.com/woojiahao/aoc/blob/main/lib/aoc/y2023/day_15.ex
Trending in Challenges
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
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
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
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
- #ai
- #ecto-query
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #metaprogramming
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
bjorng
My solution:
https://github.com/bjorng/advent-of-code-2023/blob/main/day15/lib/day15.ex
rugyoga
seeplusplus
Not pretty, but it works
lud
This one was a bit tedious but easy
https://github.com/lud/adventofcode/blob/main/lib/solutions/2023/day15.ex
trnasistor
My beginner’s solution, Day 15 part 1. Lens Library
code-shoily
This was quite fun. Although I was lazy and used
Aja.OrdMapexists
This one seemed rather straightforward to me, no fancy algorithms or optimisations. My solution for part 2 does feel a bit clumsy in terms of list handling, but it works.
nico.t
This day was easy.
I used regex too, especially named captures:
imo it’s prettier than using String.contains? and String.split
Question: I tend to always use Enum.reduce/3 as I find it convenient to introduce it into a pipeline but I see a lot of people using:
Can you tell me why do you prefer this syntax? No judgement, I’m just curious…
stevensonmt
The problem was really straightforward on both parts for this day. Makes me sad that I got so far behind on days 12-14. I didn’t do anything clever in my solution. This thread showed me some things I had not heard of. Namely, @code-shoily introducing Aja and @exists highlighting
List.keydeleteandList.keymember?. I wanted the theme this year to be binary pattern matching and manipulation as much as possible, but I didn’t want to overcomplicate this one and just used theStringfunctions mostly.stevensonmt
Like you I mostly use
Enum.reduce. When I do reach for theforcomprehension syntax it’s usually to take advantage of how easy it is to combine multiple enumerables into one logic pipeline.versus
I suspect it also may seem more familiar to people more comfortable with imperative programming approaches. Finally, there might be some cases where the
forcomprehension does provide some performance improvements as per this discussion.