Hi guys,
I have recently started cp and this is the first time I am starting a discussion so please tell if i should make some changes in my code to make it readable.
I am getting a wrong answer in this question even though I see no problem when I run it myself.
Any suggestions would be helpful.
What I did:
Made a function generatePalindrome(), which copies the left half of the string to the right according to the case, like if its even or odd. Some other cases like ignoring the leading zeroes or single digits are written inside main, as i couldnt find a more general solution.
Link to the code : https://ideone.com/GzRS81