Sha256: 08102816a5e4c0c93c5eaa31c17c3dbd7705e1cb0e80ebc0f742b5920378564b
Contents?: true
Size: 398 Bytes
Versions: 209
Compression:
Stored size: 398 Bytes
Contents
package pangram import ( "strings" ) const testVersion = 1 func IsPangram(s string) bool { lowerString := strings.ToLower(s) var check [26]bool var count int for _, c := range lowerString { if c >= 'a' { if c > 'z' { continue } c -= 97 } else { continue } if !check[c] { if count == 25 { return true } check[c] = true count++ } } return false }
Version data entries
209 entries across 209 versions & 1 rubygems