Posted inEducation
Find the minimal average of any slice containing at least two elements.
Task description A non-empty array A consisting of N integers is given. A pair of integers (P, Q), such that 0 ≤ P < Q < N, is called a slice of array A (notice that the ...