Created
March 25, 2018 04:59
-
-
Save lagenorhynque/87f625fc34e50fae9846e21ab7211cbe to your computer and use it in GitHub Desktop.
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
| (println | |
| (loop [lines (rest (line-seq (clojure.java.io/reader *in*))) | |
| numbers #{}] | |
| (if (empty? lines) | |
| (count numbers) | |
| (let [n (first lines)] | |
| (recur (rest lines) | |
| (if (contains? numbers n) | |
| (disj numbers n) | |
| (conj numbers n))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment