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
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
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
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
- #metaprogramming
- #hex
- #security










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
sevenseacat
Not the most efficient way to do it (especially part 2) but it takes like 1ms to run anyway so it literally doesn’t matter
https://github.com/sevenseacat/advent_of_code/blob/main/lib/y2024/day08.ex
Now back to doing previous year puzzles that I never completed…
bjorng
I used
Enum.dedup/1instead ofEnum.uniq/1when attempting to solve part 1. This mistake hid another bug, and so I got the correct result for the example but not for my input.The following solution is refactored to share most of the code for the solution:
https://github.com/bjorng/advent-of-code/blob/main/2024/day08/lib/day08.ex
lkuty
woojiahao
Fun day! Finally less bruteforce thinking!
Both solutions were pretty fast to run:
Solution (still working to generalize it):
cblavier
I struggled way more than expected with my x and y calculations
Part 1
Part 2
adamu
Pretty tame after Friday’s loop detection, I was expecting worse for Sunday (although I took a break yesterday so I’m not sure how that was).
Each part completes in under a millisecond.
https://git.adamu.jp/adam/AdventOfCode/src/branch/main/2024/day8.exs
lud
Sundays are supposed to be harder but today was quite easy:)
No optimization at all
its under 1ms as well.
Flo0807
My solution today:
https://github.com/Flo0807/adventofcode/blob/main/2024/08.livemd
joelheaps
That’s a clever way of iterating through the grid.
I did a
.
Map.values()into a MapSet to get possible values, then did aMap.filter()on each to get the matching tower locations, which seems messy in comparisonbillylanchantin
The grid ones are tricky to golf.
LOC: 23
This one made me wish I could reach for the extra comprehension powers hinted at in the
for letproposal.