Last active
December 4, 2017 13:47
-
-
Save Arnot/344620d8ac8eab5f1b9f8f330eec4afe 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
| (defun aoc-day3-1 (input) | |
| (let ((num-correct-passphrases 0)) | |
| (dolist (passphrase input) | |
| (let ((words (split-string passphrase " "))) | |
| (when (= (length words) | |
| (length (delete-dups words))) | |
| (incf num-correct-passphrases)))) | |
| num-correct-passphrases)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment