C++/Java Count Array
C++\ncpp\nbool checkIfPangram(string sentence) {\n    int cnt[26] = {}, total = 0;\n    for (auto ch: sentence)\n        if (++cnt[ch - \'a\'] == 1)\n          
**C++**\n```cpp\nbool checkIfPangram(string sentence) {\n    int cnt[26] = {}, total = 0;\n    for (auto ch: sentence)\n        if (++cnt[ch - \'a\'] == 1)\n            total++;\n    return total == 26;\n}\n```\n**Java**\n```java\npublic boolean checkIfPangram(String sentence) {\n    int cnt[] = new int[26], total = 0;\n    for (var ch: sentence.toCharArray())\n        if (++cnt[ch - \'a\'] == 1)\n            total++;\n    return total == 26;\n}\n```
[]