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. 🙌🏻
I ran out of time to solve each day around day 15. My goal is now to finish this year before next year starts 😆
Thanks everyone for sharing your solutions and insights! It was interesting to see the different approaches everyone took
@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.
I am still stuck somewhere in 2016 ¯\(ツ)/¯
after AoC 2020 I was solving 2015, 2016 and almost all 2017
🧵 Day 25 Solutions Thread: post your solution here
https://github.com/dgtized/advent-of-code/blob/master/2021/day25/sea_cucumber.clj
https://gitlab.com/maximoburrito/advent2021/-/blob/main/src/day25/main.clj
https://github.com/zelark/AoC-2021/blob/main/src/zelark/aoc_2021/day_25.clj
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.md • https://github.com/abyala/advent-2021-clojure/blob/main/src/advent_2021_clojure/day25.clj
https://github.com/genmeblog/advent-of-code/blob/master/src/advent_of_code_2021/day25.clj
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))))
I forgot there was no part 2
so i kept track of the empty spaces too because I figured it would ask to find the biggest empty space or something 😄