@@ -0,0 +1,1929 @@
+package algorithms.strings;%0D%0A%0D%0Aimport java.util.HashSet;%0D%0Aimport java.util.Scanner;%0D%0Aimport java.util.Set;%0D%0A%0D%0A/*%0D%0A * Problem Statement: %0D%0A * Roy wanted to increase his typing speed for programming contests. So, his%0D%0A * friend advised him to type the sentence%0D%0A * %22The quick brown fox jumps over the lazy dog%22 repeatedly, because it is a%0D%0A * pangram. (Pangrams are sentences constructed by using every letter of the%0D%0A * alphabet at least once.)%0D%0A * %0D%0A * After typing the sentence several times, Roy became bored with it. So he%0D%0A * started to look for other pangrams.%0D%0A * %0D%0A * Given a sentence s, tell Roy if it is a pangram or not.%0D%0A * %0D%0A * Input Format:%0D%0A * Input consists of a line containing s.%0D%0A * %0D%0A * Constraints:%0D%0A * Length of s can be at most 103 (1 %3C= %7Cs%7C %3C= 103) and it may contain spaces, lower%0D%0A * case and upper case letters. Lower case and upper case instances of a letter%0D%0A * are considered the same.%0D%0A * %0D%0A * Output Format:%0D%0A * Output a line containing pangram if s is a pangram, otherwise%0D%0A * output not pangram.%0D%0A * %0D%0A * Sample Input #1: %0D%0A * We promptly judged antique ivory buckles for the next prize%0D%0A * %0D%0A * Sample Output #1: %0D%0A * pangram%0D%0A * %0D%0A * Sample Input #2: %0D%0A * We promptly judged antique ivory buckles for the prize%0D%0A * %0D%0A * Sample Output #2: %0D%0A * not pangram%0D%0A */%0D%0Apublic class Pangrams %7B%0D%0A%0D%0A    public static void main(String%5B%5D args) %7B%0D%0A        Scanner sc = new Scanner(System.in);%0D%0A        %0D%0A        String input = sc.nextLine().toLowerCase();%0D%0A        %0D%0A        Set%3CCharacter%3E charSet = new HashSet%3C%3E();%0D%0A        %0D%0A        for (int i = 0; i %3C input.length(); i++) %7B%0D%0A            if (input.charAt(i) != ' ') %7B%0D%0A                charSet.add(new Character(input.charAt(i)));%0D%0A            %7D%0D%0A        %7D%0D%0A        %0D%0A        if (charSet.size() == 26) %7B%0D%0A            System.out.println(%22pangram%22);%0D%0A        %7D else %7B%0D%0A            System.out.println(%22not pangram%22);%0D%0A        %7D%0D%0A        sc.close();%0D%0A    %7D%0D%0A%7D

Add Pangrams