Check if the Sentence Is Pangram

Easy

Description

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.

Examples

Input:sentence = "thequickbrownfoxjumpsoverthelazydog"
Output:true
Explanation:

Contains all letters.

Input:sentence = "leetcode"
Output:false
Explanation:

"leetcode" has only 8 unique letters, missing several letters of the alphabet. A pangram requires all 26.

Input:sentence = "abcdefghijklmnopqrstuvwxyz"
Output:true
Explanation:

This sentence contains exactly all 26 letters of the alphabet in order, making it a pangram.

Constraints

  • 1 ≤ sentence.length ≤ 1000

Ready to solve this problem?

Practice solo or challenge other developers in a real-time coding battle!