From ef4e41a170e6a9ff3d69ccc873220a3a6987308f Mon Sep 17 00:00:00 2001 From: brendon <36212954+brendonmiranda@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:18:48 +0000 Subject: [PATCH] palindrome --- src/main/java/interview/Palindrome.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;