//Num is our given number obtained from date
1.divide num into 2 parts last 4 and first 4
ex: num=96548765
num1=9765,num2=Reverse(8765)
2.if(num1>num2)
add(num1-num2) in num2
3. num3=reverse(num2)
palindrome=num1||num3
On Mon, Sep 5, 2011 at 10:51 PM, Neha Singh <[email protected]>wrote:
> @yogesh : Looking for more efficient solution
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.