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
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
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
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 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.