Last active
August 29, 2015 14:15
-
-
Save armanbilge/8ff90300eed27f6d7446 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
| import string | |
| from collections import Counter | |
| def leastFrequentLetters(s): | |
| C = Counter(c for c in s.lower() if c in string.ascii_lowercase) | |
| return ''.join(k for k in string.ascii_lowercase if C[k] == min(C.itervalues())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment