Solución
solution.tsTypeScript
public class Solution {
public boolean isPangram(String sentence) {
Set<Character> set = new HashSet<>();
String p = sentence.toLowerCase();
for(int i = 0; i < p.length(); i++){
if(p.charAt(i) != ' ') set.add(p.charAt(i));
}
return set.size() == 26;
}
}
0respuestas