Hello, I think on the allocate function you should on the for loop you should also include the A.size() - 1 th element, otherwise it might produce an number off by one.
See this example: 3 10 2 2 2 The answer is 3, but your code returns 2. Hope it helped! :) -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-code/d60dbe98-4d55-48c5-a865-b41a69005965%40googlegroups.com.
