Peaks

Divide an array into the maximum number of same((-))sized blocks, each
of which should contain an index P such that A[P - 1] < A[P] > A[P + 1].