From 45f8fcc301c851c1105f19b29429188a7ce167af Mon Sep 17 00:00:00 2001 From: "J. Choker" <49833345+jchoker@users.noreply.github.com> Date: Wed, 9 Sep 2020 13:35:00 +0300 Subject: [PATCH] Update Question.java --- .../Q8_08_Permutations_With_Dups/Question.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }