diff --git a/Solutions/Quick Brown Fox/quickbrownfox.cpp b/Solutions/Quick Brown Fox/quickbrownfox.cpp new file mode 100644 index 00000000..f14743da --- /dev/null +++ b/Solutions/Quick Brown Fox/quickbrownfox.cpp @@ -0,0 +1,27 @@ +#include +#include + +using namespace std; + +int main() { + int n; + cin >> n; + while(n--) { + int freq[26] = { 0 }; + string input; + getline(cin >> ws, input); + for(char letter : input) { + if(!isalpha(letter)) continue; + freq[tolower(letter) - 'a']++; + } + string missing = ""; + for(int i = 0; i < 26; ++i) { + if (freq[i] == 0) { + missing += 'a' + i; + } + } + if(missing != "") cout << "missing " << missing << "\n"; + else cout << "pangram" << "\n"; + } + return 0; +} \ No newline at end of file