Google Phone Interview New Grad
Anonymous User
1206

MaxWindowTotal will take an array of integers and a windowSize, and return the maximum total of any consecutive sequence of integers of length windowSize.

For example, given (array = [5, 12, 25, 7, 9], windowSize = 3), the method will return 44 (the sum of 12, 25, and 7 is the greatest total of any 3 consecutive integers in the array).

Is there an equivalent LC question for this?

Comments (5)