Code Lab

Modo entrevista. Temporizador de 3 min, sin pistas y sin autocompletado

All letters of the alphabet

FácilMap 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.

Ejemplos

isPangram('thequickbrownfoxjumpsoverthelazydog')

Devuelve true

isPangram('leetcode')

Devuelve false

The letter `a`, for one, is missing.

Fuente

Cargando el editor…
  1. EntradaisPangram('thequickbrownfoxjumpsoverthelazydog')
    Esperadotrue
  2. EntradaisPangram('leetcode')
    Esperadofalse
  3. EntradaisPangram('abcdefghijklmnopqrstuvwxyz')
    Esperadotrue

Las pruebas ocultas se ejecutan al enviar