The average in array

Enter an array a [i] of n elements.
k is an integer.
Find the longest consecutive sequence in the array a [i] is equal to the average value k and the first value of the sequence that is how much?

The one you have data structures or algorithms what helps with me!

(Because i'm write E not good! If u don't understand topic,u can go to http://translate.google.com.vn)
Thanks u! : X: X

How would you do it if someone wrote down the numbers for you on paper?
Do u know data structures or algorithms this exercises??? Thanks u very much!
Topic archived. No new replies allowed.