Untitled

Anonymous
plain_text
01/19/2023 3:03 AM
416 B
26
Indexable
/*
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]
*/
Editor is loading...