You are viewing a single comment's thread. Return to all comments →
Java is as easy :
public static boolean isPangram(String s) { s = s.toLowerCase(); s = s.replaceAll("\\s", ""); SortedSet<Character> set = s.chars() .mapToObj(c -> (char) c) .collect(Collectors.toCollection(TreeSet:: new)); return set.size() == 26; }
Seems like cookies are disabled on this browser, please enable them to open this website
Set .symmetric_difference() Operation
You are viewing a single comment's thread. Return to all comments →
Java is as easy :