In case, you have used recursion, just try and check if you have used dynamic programming/ memoization or not.. In case you haven't, your code will run for years and not show an output.. :P Regards, Pratyush
On Sep 5, 1:59 am, Bey <baltc...@gmail.com> wrote: > Hi > I noticed that there are a large number of people who go the small > input correct for prob C but not the large input. I was wondering why > that might be. I am one of those people. I think I applied Dynamic > Programming, and it worked on the small input, but not the large > input. I still can't figure it out. Does anyone know why a lot of > people are in the same lot? Basically, I think I am counting the > number of ways so far of being in one of the 18 states, of having > observed 'w', 'we', 'wel' etc. And then I write out the number of > ways of being in the 18th state at the end. Why do I fail on large > values? I also mod everytime I add numbers. > > What is going on? Did you fail on large input too? Did you figure out > why? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-codejam" group. To post to this group, send email to google-code@googlegroups.com To unsubscribe from this group, send email to google-code+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-code?hl=en -~----------~----~----~----~------~----~------~--~---