about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 330
Copyright Nick Parlante 2017 - privacy