Check if the Sentence Is Pangram

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.

Example 1
Inputsentence = "thequickbrownfoxjumpsoverthelazydog"
Outputtrue
sentence contains at least one of every letter of the English alphabet.
Example 2
Inputsentence = "leetcode"
Outputfalse
sentence does not contain every letter of the English alphabet.

Constraints

  • 1 <= sentence.length <= 1000
  • sentence consists of lowercase English letters.

Asked at 6 companies

</>

Your Solution

(Ctrl/Cmd + Enter)

Switching Language

Loading template...

Loading...

Sign in to save your progress

AI code evaluation

Get a correctness verdict, missed edge cases, and complexity analysis of your solution.

Sign in to evaluate