Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 317 Bytes

1832.md

File metadata and controls

13 lines (11 loc) · 317 Bytes

1832. Check if the Sentence Is Pangram

Solution 1 (time O(n), space O(1))

class Solution(object):
    def checkIfPangram(self, sentence):
        """
        :type sentence: str
        :rtype: bool
        """
        return all(c in sentence for c in "abcdefghijklmnopqrstuvwxyz")