diff --git a/src/main/java/interview/Palindrome.java b/src/main/java/interview/Palindrome.java index 9cc9a4e..fd0e903 100644 --- a/src/main/java/interview/Palindrome.java +++ b/src/main/java/interview/Palindrome.java @@ -32,7 +32,7 @@ public static int numberOfWaysToMakeAPalindrome(String s) { if (oddCount == 1) return 1; - if (oddCount == 2) + if (oddCount == 2) // i forgot this edge case return 2;