Skip to content

Instantly share code, notes, and snippets.

@roman01la
Last active December 1, 2021 09:34
Embed
What would you like to do?
(defn part-1 [input]
(->> input
(partition 2 1)
(filter #(apply < %))
count))
(defn part-2 [input]
(->> input
(partition 3 1)
(map #(apply + %))
part-1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment