This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-25
Channels
- # adventofcode (16)
- # babashka (8)
- # beginners (13)
- # calva (22)
- # clj-on-windows (20)
- # clojure (49)
- # clojure-australia (1)
- # clojure-europe (6)
- # clojure-nl (2)
- # clojure-uk (3)
- # clojurescript (4)
- # emacs (1)
- # fulcro (20)
- # introduce-yourself (2)
- # java (2)
- # missionary (2)
- # off-topic (10)
- # other-languages (2)
- # pathom (4)
- # re-frame (15)
https://github.com/dgtized/advent-of-code/blob/master/2021/day25/sea_cucumber.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
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 😄
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))))
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. 🙌:skin-tone-2:
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
@U89SBUQ4T that’s one of the aspects of AoC why I like solving it in time. Always learn something new by reading other’s approaches.