Advent of Code 2020 Day 9 Encoding Error in Clojure (cond)

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thanks for posting these explanations! Amazing work :)

antoniobibiano
Автор

I love for-comprehensions in Clojure.

I took exactly the same approach for part 2, but your Clojure code for that algorithm is so much nicer than my Python code. Loop-recur is a very nice construct.

For part 1, I did a more efficient approach where potential sum-pairs can be found instantly. Looks like it wasn't necessary though! Simpler code would still have run very fast.

code_explorations
welcome to shbcf.ru