Last active
January 5, 2018 20:29
-
-
Save okram999/727d194812371a0eb4444f321bfd3191 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
s = gets.downcase.chomp | |
uniq_s = s.split(//).uniq.sort | |
uniq_s.shift if uniq_s[0] == " " | |
puts 'pangram' if uniq_s.length == 26 | |
puts 'not pangram' if uniq_s.length != 26 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment