Practice/Goldman Sachs/Leetcode 1832. Check if the Sentence Is Pangram
CodingMust
Write a function that determines whether a given string contains every letter of the English alphabet at least once. Such a string is called a pangram. The input will consist only of lowercase English letters.
Your function should return true if the string is a pangram (contains all 26 letters from 'a' to 'z'), and false otherwise.
0 <= sentence.length <= 1000sentence consists only of lowercase English lettersExample 1:
Input: sentence = "thequickbrownfoxjumpsoverthelazydog" Output: true Explanation: The sentence contains all 26 letters of the alphabet at least once.
Example 2:
Input: sentence = "helloworld" Output: false Explanation: The sentence is missing many letters including 'a', 'b', 'c', and others.
Example 3:
Input: sentence = "abcdefghijklmnopqrstuvwxyz" Output: true Explanation: This sentence contains exactly one of each letter in alphabetical order.