Preview:
class Solution {
public:
    bool checkIfPangram(string s) {
        int n=s.size();
        vector<bool> v(26,false);
        if(n<26) return false;
        else if(n>=26)
        {
            for(int i=0;i<n;i++)
            {
                v[s[i]-'a']=true;
            }
        }
        for(int i=0;i<26;i++)
        {
            if(v[i]==false) return false;
        }
        return true;
    }
};
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter