daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func IsIsogram(s string) bool {
  2.     seen := map[rune]bool{}
  3.     for _, char := range s {
  4.         char = unicode.ToLower(char)
  5.         if 'a' <= char && char <= 'z' {
  6.             if _, ok := seen[char]; ok {
  7.                 return false
  8.             }
  9.             seen[char] = true
  10.         }
  11.     }
  12.     return true
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top