Skip to content

Instantly share code, notes, and snippets.

@okram999
Last active January 5, 2018 20:29
Show Gist options
  • Save okram999/727d194812371a0eb4444f321bfd3191 to your computer and use it in GitHub Desktop.
Save okram999/727d194812371a0eb4444f321bfd3191 to your computer and use it in GitHub Desktop.
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