I have problem while reversing and checking palindrome for a number of specific base (other than 10). For example:- let's take 87. The Palindrome number is found as follows:
87+78= 165+ 561 = 726 + 627= 1353 + 3531 = Palindrome !
This method works fine for a number with base 10. But how to do this for another number with different base. Just like, 1211 with base 3 forms Palindrome 112211 and 3112 with base 4 forms Palindrome 233332 . I used these results to test my code. But the output doesn't match. Please guide me and share your precious knowledge, I shall be glad and thankful to you :)