Define a grammar for even-length palindromes
Answers
Answered by
0
when given number "n" as a string; 3
then 2 find th even-length positive palindrome number as follows:
input :n ="1"
output:11
1st even-length palindrome =11
then its numbers will 11 ,22,33,44,55,66,77,88,99,and 1001
then 2 find th even-length positive palindrome number as follows:
input :n ="1"
output:11
1st even-length palindrome =11
then its numbers will 11 ,22,33,44,55,66,77,88,99,and 1001
Similar questions