1
2
3
4
|
class Solution:
def checkIfPangram(self, sentence: str) -> bool:
if len(set(sentence))==26: return True
else: return False
|
cs |
알파벳이 적어도 1번씩은 다 쓰여야하고 중복이 있으면 안됨
반응형
'python-algorithm' 카테고리의 다른 글
Leetcode 1822. Sign of the Product of an Array (0) | 2021.08.19 |
---|---|
Leetcode 344. Reverse String (0) | 2021.08.17 |
Leetcode 1662. Check If Two String Arrays are Equivalent (0) | 2021.08.17 |
Leetcode 709. To Lower Case (0) | 2021.08.17 |
Leetcode 1295. Find Numbers with Even Number of Digits (0) | 2021.08.17 |
댓글