Code Lab

Modo entrevista. Cronômetro de 3 min, sem dicas e sem autocompletar

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.

Exemplos

isPangram('thequickbrownfoxjumpsoverthelazydog')

Retorna true

isPangram('leetcode')

Retorna false

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

Fonte

Carregando o editor...
  1. EntradaisPangram('thequickbrownfoxjumpsoverthelazydog')
    Esperadotrue
  2. EntradaisPangram('leetcode')
    Esperadofalse
  3. EntradaisPangram('abcdefghijklmnopqrstuvwxyz')
    Esperadotrue

Os testes ocultos rodam no envio