1832. Check if the Sentence Is Pangram
https://leetcode.com/problems/check-if-the-sentence-is-pangram/
Python
- Time: O(1)
- Space: O(N)
from string import ascii_lowercase
class Solution:
def checkIfPangram(self, sentence: str) -> bool:
return not bool(set(ascii_lowercase) - set(sentence))