You are viewing a single comment's thread. Return to all comments →
My JAVA solution passing all test cases:
static String pangrams(String s) { s = s.replaceAll("\\s+","").toUpperCase(); Set<Character> alpSet = new HashSet<Character>(); for(int i=0; i<s.length(); i++){ alpSet.add(s.charAt(i)); } return (alpSet.size() == 26) ? "pangram" : "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 →
My JAVA solution passing all test cases: