November 9th, 2012, 10:04 AM
Join Date: Nov 2012
Time spent in forums: 8 h 42 m 41 sec
Reputation Power: 2
Originally Posted by b49P23TIvg
Few seconds is way too long for this calculation.
suppose you have a number with digits (and these are integers 0 through 9)
a b c d e f
you need to find the maximal sum of 3 consecutive digits.
so you start with the sum
You next need
do you have to add b, c, and d?
No! You can subtract `a' and add `d'. And that's a saving for sequences longer than 3.
Oh dear too many clues.
HAHAHA! what was I thinking
I really thought this would turn out to be way harder, I guess the time limitation thing brought me to think way too far methods.
Dear sir, you saved me from "me". Thank you.