Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
312 B
9
Indexable
Never
/*
Question:

Given an array of size n, where Ai means the height of an individual.
For a group, the strength of that group is the lowest height of an individual in that group.
For each x in the range [1, n], find the maximum strength for group of the size x. 

Eg: 1 2 3 4 3 2 5
Ans[] = [5, 3, 3, 2, 2, 2, 1]
*/