@@ -0,0 +1,531 @@
+public class Solution %7B%0A%0A    public boolean canConstruct(String ransomNote, String magazine) %7B%0A%0A        int%5B%5D alphabetsCount = new int%5B26%5D;%0A%0A        for (int i = 0; i %3C magazine.length(); i++) %7B%0A            alphabetsCount%5Bmagazine.charAt(i) - 'a'%5D++;%0A        %7D%0A%0A        for (int i = 0; i %3C ransomNote.length(); i++) %7B%0A%0A            alphabetsCount%5BransomNote.charAt(i) - 'a'%5D--;%0A%0A            if (alphabetsCount%5BransomNote.charAt(i) - 'a'%5D %3C 0) %7B%0A                return false;%0A            %7D%0A%0A        %7D%0A%0A        return true;%0A%0A    %7D%0A%0A%7D%0A

Create : 383 Ransom Note