Skip to content

Instantly share code, notes, and snippets.

@buntine
Last active December 6, 2023 12:40
Show Gist options
  • Save buntine/e2449e3a38804436e130db953dd40b7a to your computer and use it in GitHub Desktop.
Save buntine/e2449e3a38804436e130db953dd40b7a to your computer and use it in GitHub Desktop.
advent-of-code-2023-day6.clj
;golfed it
(apply * (map (comp count (fn [[t d]] (filter #(> (* (- t %) %) d) (range 1 t)))) {7 9 15 40 30 200}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment