Well I used Dynamic programming to slove this question. Is ur code taking too to solve much time to solve large data set or ur logic is not supporting long integers?Because i think your while loop increment part is too fast!. its a good increment but i didnt checked whether ur logic is correct for large input!
-- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/9ea1fe94-fe20-40a6-850b-a8d490ac364c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
