You are viewing a single comment's thread. Return to all comments →
What is wrong in my method why editor in hackerrank is giving incorrect while in eclipse its correct
public static void pangaram(String s){
Set<Character> s1= new HashSet<Character>(); for (int i=0; i<s.length(); i++){ s1.add(s.charAt(i)); } s1.remove(' '); if (s1.size()==26) System.out.println("pangram"); else System.out.println("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 →
What is wrong in my method why editor in hackerrank is giving incorrect while in eclipse its correct
public static void pangaram(String s){
}