Last active
January 29, 2017 14:37
-
-
Save railsstudent/53f32bf775e64d75dccfdf8c81a64256 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
printerError = (s) -> | |
goodAlphabet = "abcdefghijklm" | |
errorCount = 0 | |
for x in s | |
if x not in goodAlphabet then errorCount += 1 | |
"#{errorCount}/#{s.length}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment