Skip to content

Instantly share code, notes, and snippets.

@agrison
Created September 27, 2016 06:43
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 agrison/fe2e92ff8c6f72a0db1e4dbcb3f76dae to your computer and use it in GitHub Desktop.
Save agrison/fe2e92ff8c6f72a0db1e4dbcb3f76dae to your computer and use it in GitHub Desktop.
HackerRank gems.clj
(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