Beautiful Towers II
Problem: Beautiful Towers II
You are given a 0-indexed integer array maxHeights of length n.
You need to build n towers on a coordinate line. The i-th tower is built at coordinate i and...
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:
