Skip to content

Commit db53a05

Browse files
Merge pull request #111 from stubborn-akshat/patch-1
Check_if_the_Sentence_Is_Pangram.java
2 parents 17d6518 + 1ac47ed commit db53a05

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class Solution{
2+
public boolean checkIfPangram(String sentence){
3+
Set<Character> set=new HashSet<>();
4+
for(int i=0;i<sentence.length();i++){
5+
set.add(sentence.charAt(i));
6+
}
7+
if(set.size()==26){
8+
return true;
9+
}
10+
return false;
11+
}
12+
}

0 commit comments

Comments
 (0)