Problem

Return true if s is a palindrome using recursion.

Examples

  • isPalindromeRecursive("aba") -> true
  • isPalindromeRecursive("ab") -> false
Compile and test (Ctrl+Enter)