All letters of the alphabet
EasyMap and Set3 min
Write a function isPangram(sentence). It takes a string of lower-case Latin letters and returns true if it has every one of the 26 letters of the alphabet. Otherwise return false.
Examples
isPangram('thequickbrownfoxjumpsoverthelazydog')Returns true
isPangram('leetcode')Returns false
Loading the editor...
- Input
isPangram('thequickbrownfoxjumpsoverthelazydog')Expectedtrue - Input
isPangram('leetcode')Expectedfalse - Input
isPangram('abcdefghijklmnopqrstuvwxyz')Expectedtrue
Hidden tests run on Submit