79467053

Date: 2025-02-25 15:26:10
Score: 1
Natty:
Report link
    public boolean palindromeCheck(String word) {
    if (word.length() <= 1) return true; //Base Case
    if (word.charAt(0) != word.charAt(word.length()-1)) return false; // Base Case
    else return palindromeCheck(word.substring(1, word.length()-1)); //Recursive Case
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Simon