adventofcode

Aleks 2021-12-25T18:30:15.302600Z

It’s too silent today here. Congras everyone who managed to finish Advent of Code 2021. 🎉 And even if you didn’t finish, I believe you got some fun by solving the problems. Maybe one day, you will. 🙌🏻

👍 7
🎉 2
2021-12-25T20:35:47.302900Z

I ran out of time to solve each day around day 15. My goal is now to finish this year before next year starts 😆

👏🏻 1
Miķelis Vindavs 2021-12-25T21:00:34.303700Z

Thanks everyone for sharing your solutions and insights! It was interesting to see the different approaches everyone took

👍 1
👍🏻 1
Aleks 2021-12-26T06:16:35.304800Z

@mikelis.vindavs that’s one of the aspects of AoC why I like solving it in time. Always learn something new by reading other’s approaches.

spfeiffer 2021-12-25T20:57:25.303600Z

I am still stuck somewhere in 2016 ¯\(ツ)

Aleks 2021-12-26T06:06:25.304600Z

after AoC 2020 I was solving 2015, 2016 and almost all 2017

Aleks 2021-12-25T04:54:20.295300Z

🧵 Day 25 Solutions Thread: post your solution here

Andrew Byala 2021-12-25T07:40:01.297700Z

Nothing too tricky here, but I threw in a multi-method mostly to make the code and blog a little more interesting for my non-Clojure coworkers to read. • https://github.com/abyala/advent-2021-clojure/blob/main/docs/day25.mdhttps://github.com/abyala/advent-2021-clojure/blob/main/src/advent_2021_clojure/day25.clj

👏🏻 1
tschady 2021-12-28T22:14:24.310100Z

doc: https://github.com/tschady/advent-of-code/blob/main/doc/2021.adoc#aoc2021d25 code: https://github.com/tschady/advent-of-code/blob/main/src/aoc/2021/d25.clj Cool bit: > This is my first use of `as→`. I always thought it obfuscating, but I like it here.

(defn step [dx dy grid]
  (as-> grid g
    (reduce (partial shift dx dy g) g (filter-vals #{\>} grid))
    (reduce (partial shift dx dy g) g (filter-vals #{\v} grid))))

Antonio Bibiano 2021-12-27T12:42:46.308Z

I forgot there was no part 2

Antonio Bibiano 2021-12-27T12:43:19.308200Z

so i kept track of the empty spaces too because I figured it would ask to find the biggest empty space or something 😄

Antonio Bibiano 2021-12-27T12:44:21.308400Z