Pangrams

  • + 0 comments

    Python solution:

    def pangrams(s):
        freq = [0] * 26
        s = s.lower()
        
        for char in s:
            if char.isalpha():
                freq[ord(char) - ord("a")] += 1
                
        for i in range(len(freq)):
            if freq[i] == 0:
                return "not pangram"
                
        return "pangram"