🎉 One-stop destination for all your technical interview Preparation 🎉
A pangram is a sentence where every letter of the English alphabet appears at least once.
Given a string sentence containing only lowercase English letters, return true if sentence is a pangram, or false otherwise.
class Solution {
public:
bool checkIfPangram(string sentence) {
unordered_set<char> st;
int n = sentence.size();
for(int i=0;i<n;i++){
st.insert(sentence[i]);
}
return (st.size()==26?true:false);
}
};