i think month shud be 11 always.decrement the year by one and take last two
digits of yr and use it as date .correct me if there is any bug pl

On Mon, Sep 5, 2011 at 9:32 PM, Neha Singh <[email protected]>wrote:

> Sorry there is a mistake in the above question ,
> Just make the change that the function shud return the next palindromic
> date
>
>
>
> Lets say the function is given the I/P :  10/01/1111
> Then it should return  :    11/11/1111
>
> Plz avoid just increementing the date and returning when it reaches a
> palindromic date.  Think efficiently...
> Also take care of the tricky test cases like: a leap year and there r many
> more....
>
> --
> 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.

Reply via email to