Skip to content

Instantly share code, notes, and snippets.

@Niall47
Last active November 5, 2021 09:50
Show Gist options
  • Save Niall47/1f3906199d0f9aa0a4002159b0c0e6a7 to your computer and use it in GitHub Desktop.
Save Niall47/1f3906199d0f9aa0a4002159b0c0e6a7 to your computer and use it in GitHub Desktop.
input = gets
.chomp
.upcase
.gsub(/[^A-Z]/i, '')
.chars
puts "isogram" if input == input.uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment