Added 13 solutions

This commit is contained in:
rshaghoulian
2017-03-18 22:17:22 -05:00
parent b1992b3e60
commit 8239026cea
30 changed files with 1945 additions and 1312 deletions
+1 -5
View File
@@ -20,11 +20,7 @@ public class Solution {
/* Fill HashMap with 1st String */
for (int i = 0; i < a.length(); i++) {
char ch = a.charAt(i);
if (map.containsKey(ch)) {
map.put(ch, map.get(ch) + 1);
} else {
map.put(ch, 1);
}
map.merge(ch, 1, Integer::sum);
}
/* Compare 2nd String to 1st String's HashMap */