@@ -0,0 +1,1345 @@
+/*Based on the question at the link:%0Ahttps://www.hackerrank.com/challenges/ctci-ransom-note%0A*/%0Aimport java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int m = in.nextInt();%0A        int n = in.nextInt();%0A        %0A        if(m%3Cn)%7B%0A            System.out.println(%22No%22);%0A            return;%0A        %7D%0A        %0A        HashMap%3CString,Integer%3E magazine = new HashMap%3CString,Integer%3E();%0A        for(int magazine_i=0; magazine_i %3C m; magazine_i++)%7B%0A            String s = in.next();%0A            if(magazine.containsKey(s))%7B%0A                magazine.put(s, magazine.get(s)+1);%0A            %7D%0A            else%7B%0A                magazine.put(s, 1);%0A            %7D%0A        %7D%0A        %0A        for(int ransom_i=0; ransom_i %3C n; ransom_i++)%7B%0A            String s = in.next();%0A            if(!magazine.containsKey(s))%7B%0A                System.out.println(%22No%22);%0A                return;%0A            %7D%0A            else%7B%0A                int count = magazine.get(s);%0A                magazine.put(s, --count);%0A                if(count%3C0)%7B%0A                    System.out.println(%22No%22);%0A                    return;%0A                %7D%0A            %7D%0A        %7D%0A        System.out.println(%22Yes%22);%0A    %7D%0A%7D%0A

Create RansomNote.java