Einfach 0 gelöst 0% Erfolgsquote

Pangram Check

A pangram contains every English letter at least once.

Problem

A pangram contains every English letter at least once. Determine whether the text is a pangram. Ignore case, spaces, digits, and punctuation.

Implement pangram_check(text).

Input

text: The text to inspect.

Output

Return true if all 26 letters appear, otherwise false.

Einschränkungen

0 ≤ text length ≤ 100,000. Input contains printable ASCII characters. Only letters A–Z and a–z count.

Beispiele

Beispiel 1
Eingabe:
text = "The quick brown fox jumps over the lazy dog."

Erwartete Ausgabe:
expected = True
Eingabe:
std::string text = "The quick brown fox jumps over the lazy dog.";

Erwartete Ausgabe:
bool expected = true;
Eingabe:
string text = "The quick brown fox jumps over the lazy dog.";

Erwartete Ausgabe:
bool expected = true;

Erläuterung

Every letter from a through z appears at least once. Capital T counts as t.

Beispiel 2
Eingabe:
text = "abcdefghijklmnopqrstuvwxy"

Erwartete Ausgabe:
expected = False
Eingabe:
std::string text = "abcdefghijklmnopqrstuvwxy";

Erwartete Ausgabe:
bool expected = false;
Eingabe:
string text = "abcdefghijklmnopqrstuvwxy";

Erwartete Ausgabe:
bool expected = false;

Erläuterung

This text contains a through y, but it has no z. One missing letter makes it false.

Referenzen

Diese Aufgabe wurde für CodeUtility angepasst. Beachte die oben genannten Vorgaben und Einschränkungen.

Von anderen lernen

Community-Lösungen

Noch keine veröffentlichten Lösungen. Löse die Aufgabe und teile als Erster eine Lösung.