Dễ 0 đã giải Tỷ lệ chấp nhận 0%

Pangram Check

A pangram contains every English letter at least once.

Đề bài

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.

Ràng buộc

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

Ví dụ

Ví dụ 1
Đầu vào:
text = "The quick brown fox jumps over the lazy dog."

Kết quả mong đợi:
expected = True
Đầu vào:
std::string text = "The quick brown fox jumps over the lazy dog.";

Kết quả mong đợi:
bool expected = true;
Đầu vào:
string text = "The quick brown fox jumps over the lazy dog.";

Kết quả mong đợi:
bool expected = true;

Giải thích

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

Ví dụ 2
Đầu vào:
text = "abcdefghijklmnopqrstuvwxy"

Kết quả mong đợi:
expected = False
Đầu vào:
std::string text = "abcdefghijklmnopqrstuvwxy";

Kết quả mong đợi:
bool expected = false;
Đầu vào:
string text = "abcdefghijklmnopqrstuvwxy";

Kết quả mong đợi:
bool expected = false;

Giải thích

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

Tham khảo

Thử thách này đã được điều chỉnh cho CodeUtility. Hãy làm theo đề bài và các ràng buộc ở trên.

Học hỏi từ người khác

Giải pháp cộng đồng

Chưa có giải pháp nào được chia sẻ. Hãy giải thử thách này để đăng giải pháp đầu tiên.