Created
April 20, 2020 22:29
-
-
Save aarkerio/446bc3e57a7716d94abe7cdebee2d929 to your computer and use it in GitHub Desktop.
Clojure kata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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