Created
September 27, 2016 06:43
-
-
Save agrison/fe2e92ff8c6f72a0db1e4dbcb3f76dae to your computer and use it in GitHub Desktop.
HackerRank gems.clj
This file contains 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
(use '[clojure.string :only (split-lines)] | |
'[clojure.set :only (intersection)]) | |
(->> split-lines (slurp *in*) | |
rest | |
(map set) | |
(apply intersection) | |
count | |
println) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment