LC 1832 [E] Check if the Sentence Is Pangram - ALawliet/algorithms GitHub Wiki
class Solution:
def checkIfPangram(self, sentence: str) -> bool:
alphabet = Counter(string.ascii_lowercase)
for c in sentence:
if c in alphabet:
alphabet[c] -= 1
for v in alphabet.values():
if v == 1:
return False
return True
def checkIfPangram(self, s):
return len(set(s)) == 26