Palindromic Queries

Hi,
I am not able to understand what exaclty , i am missing in the question , Please check my code and help.
My approach:
Created a 2d array and stored all l,r combinations i.e . whether it is palindrome or not .
and then for each l,r in query return the dp[l][r].

Hey @Vishal_234 your approach seems to be correct, there might be a coding bug please check for the same.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.