#1832

Check if the Sentence Is Pangram

newbie · 125 · lc easy +13 · verified · 84.1% accepted · 3,018 likes · top 95%

Description

A pangram is a sentence that contains every letter of the English alphabet at least once.

Given a string sentence of lowercase English letters, return true if it is a pangram, or false otherwise.

Example 1:

Input: sentence = "thequickbrownfoxjumpsoverthelazydog"
Output: true
Explanation: sentence contains at least one of every letter of the English alphabet.

Example 2:

Input: sentence = "leetcode"
Output: false

Code

1
2
3