Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 553 Bytes

23.md

File metadata and controls

23 lines (17 loc) · 553 Bytes
bool checkPangram (string s) {
        // your code here
        
        vector<int>alpha(26,0);
        
        
        for(int i=0;i<s.size();i++)
        {
              char c =tolower(s[i]);
            if(c-'a' >=0 && c-'a'<26)
                alpha[c-'a']=1;
        }
            
            
        for(int i=0;i<26;i++)
            if(alpha[i]==0)
                return false;
        return true;
    }