We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dcf0bc commit be7be69Copy full SHA for be7be69
Easy/Check if the Sentence Is Pangram.java
@@ -0,0 +1,7 @@
1
+class Solution {
2
+ public boolean checkIfPangram(String sentence) {
3
+ Set<Character> allUnique = sentence.chars().mapToObj(c -> (char) c).collect(Collectors.toSet());
4
+ return "abcdefghijklmnopqrstuvwxyz".chars().mapToObj(c -> (char) c)
5
+ .allMatch(allUnique::contains);
6
+ }
7
+}
0 commit comments