diff options
Diffstat (limited to 'other/check_pangram_sentence.cpp')
-rw-r--r-- | other/check_pangram_sentence.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/other/check_pangram_sentence.cpp b/other/check_pangram_sentence.cpp deleted file mode 100644 index 67f1af2..0000000 --- a/other/check_pangram_sentence.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - bool checkIfPangram(string sentence) { - set<int> s; - for (auto &i : sentence) - s.insert(i); - return s.size() == 26; - } -}; - -int main() { - Solution obj; - if (obj.checkIfPangram("thequickbrownfoxjumpsoverthelazydog")) - cout << "true"; - else - cout << "false"; -} |