Skip to content

Commit

Permalink
palindrome
Browse files Browse the repository at this point in the history
  • Loading branch information
brendonmiranda committed Nov 8, 2024
1 parent 7e051f9 commit ef4e41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/interview/Palindrome.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down

0 comments on commit ef4e41a

Please sign in to comment.