ง่าย 0 ข้อที่แก้แล้ว อัตราผ่าน 0%

Pangram Check

A pangram contains every English letter at least once.

โจทย์

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.

เงื่อนไข

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

ตัวอย่าง

ตัวอย่างที่ 1
อินพุต:
text = "The quick brown fox jumps over the lazy dog."

ผลลัพธ์ที่คาดหวัง:
expected = True
อินพุต:
std::string text = "The quick brown fox jumps over the lazy dog.";

ผลลัพธ์ที่คาดหวัง:
bool expected = true;
อินพุต:
string text = "The quick brown fox jumps over the lazy dog.";

ผลลัพธ์ที่คาดหวัง:
bool expected = true;

คำอธิบาย

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

ตัวอย่างที่ 2
อินพุต:
text = "abcdefghijklmnopqrstuvwxy"

ผลลัพธ์ที่คาดหวัง:
expected = False
อินพุต:
std::string text = "abcdefghijklmnopqrstuvwxy";

ผลลัพธ์ที่คาดหวัง:
bool expected = false;
อินพุต:
string text = "abcdefghijklmnopqrstuvwxy";

ผลลัพธ์ที่คาดหวัง:
bool expected = false;

คำอธิบาย

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

แหล่งอ้างอิง

โจทย์นี้ปรับให้เหมาะกับ CodeUtility กรุณาทำตามคำชี้แจงและข้อจำกัดด้านบน

เรียนรู้จากคนอื่น

แนวทางจากชุมชน

ยังไม่มีวิธีทำที่เผยแพร่ ลองแก้โจทย์นี้เพื่อแชร์วิธีแรก