diff --git a/Java/Ch 08. Recursion and Dynamic Programming/Q8_08_Permutations_With_Dups/Question.java b/Java/Ch 08. Recursion and Dynamic Programming/Q8_08_Permutations_With_Dups/Question.java index 8e5a19c8..16d5fb40 100644 --- a/Java/Ch 08. Recursion and Dynamic Programming/Q8_08_Permutations_With_Dups/Question.java +++ b/Java/Ch 08. Recursion and Dynamic Programming/Q8_08_Permutations_With_Dups/Question.java @@ -8,7 +8,7 @@ public static HashMap buildFreqTable(String s) { HashMap map = new HashMap(); for (char c : s.toCharArray()) { if (!map.containsKey(c)) { - map.put(c, 0); + map.put(c, 1); } map.put(c, map.get(c) + 1); }