Is palindrome problem

why is the error coming please explain.

Hi vipin

  1. use number array instead of character array as mentioned in problem.
  2. use a[i] instead of a.charAt(i)

Hope it helps :slight_smile:

1 Like