Published on

Check if the Sentence Is Pangram

Authors

📝 Vazifa tavsifi

Pangram — bu ingliz alifbosidagi har bir harf kamida bir marta ishtirok etgan gap. Sizga faqat kichik ingliz harflaridan iborat sentence satri berilgan.

Agar sentence pangram bo'lsa true qaytaring, aks holda false qaytaring.

Misol:

Input: sentence = "thequickbrownfoxjumpsoverthelazydog"
Output: true
Tushuntirish: sentence ingliz alifbosidagi barcha 26 ta harfni o'z ichiga oladi.

Check if the Sentence Is Pangram

Oson5 daqiqa10 ball

📚 Misollar

Kiruvchi: sentence = "thequickbrownfoxjumpsoverthelazydog"
Chiquvchi: true
Kiruvchi: sentence = "leetcode"
Chiquvchi: false
func solve(_ sentence: String) -> Bool { // Kodingizni shu yerga yozing return false }

Run tugmasini bosing

Buy mea coffee