Skip to content

Instantly share code, notes, and snippets.

@aarkerio
Created April 20, 2020 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarkerio/446bc3e57a7716d94abe7cdebee2d929 to your computer and use it in GitHub Desktop.
Save aarkerio/446bc3e57a7716d94abe7cdebee2d929 to your computer and use it in GitHub Desktop.
Clojure kata
;; In a new hotel containing 100 rooms, Tom was hired to paint the numbers from 1-100 on the doors.
;; How many times will Tom have to paint the number 8?
(get (frequencies (clojure.string/join (range 101))) \8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment