Resize Multiple Rectangles’ Heights With Minimum Height Constraint (Fair Distribution)
Part 1: Resize multiple rectangles’ heights (minimum height = 1)
You have n rectangles arranged vertically. The i-th rectangle has height h[i] (positive integers). Given an integer resize ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
