You are viewing a single comment's thread. Return to all comments →
//java 17 solution
public static String pangrams(String s) { // Write your code here List<Character> chars = s.toLowerCase().chars().mapToObj(c -> (char)c) .distinct() .filter(c -> c != ' ') .collect(Collectors.toList()); if(chars.size() == 26) { return "pangram"; } return "not pangram"; }
Seems like cookies are disabled on this browser, please enable them to open this website
Pangrams
You are viewing a single comment's thread. Return to all comments →
//java 17 solution