Hi,
I'm getting Wrong Answer and I don't know where the problem could be.
Maybe it's an edge case I have not thought about. I tried the samples and it 
seems to work.

Can you please give me any clue?

This is the link of the problem. 
https://codingcompetitions.withgoogle.com/kickstart/round/0000000000051060/0000000000058b89
This is the solution code: https://play.golang.org/p/88NBNRfenXz

My idea to solve the problem is:
- Precompute the accumulated value in a certain point.
- Look for the max X-successive items sum by looping the accumulated-values 
array and compute the difference.

Thanks in advance.

-- 
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/4a76f279-8e84-4481-a012-ee62930ff672%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to