id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > stingSimonPalendrome
prev  |  next  |  chance

Write a recursive method that detemines if a string input parameter is a palindrome or not. Return true if the string is a palindrome, false otherwise. The string will be all lower-case letters with no spaces or other punctuation. Your method MUST solve the problem using recursion in a non-trivial way. There is ONE twist! It is OK to have a string that is one pair of letters short of being a palendrome, as long as it is the outer-most pair. So if changing the first letter to match the last letter would make the string a palendrome you should still return true.


stingSimonPalendrome("") → true
stingSimonPalendrome("racecat") → true
stingSimonPalendrome("abcdefggfedcbx") → true

...Save, Compile, Run (ctrl-enter)

public boolean stingSimonPalendrome(String str) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 330

Copyright Nick Parlante 2017 - privacy