Minimize Cost to Make Blocks Unique
Given two arrays heights and costs, where heights[i] is the height of the i-th block and costs[i] is the cost to increase the height of the i-th block by 1 unit. You can increase the height of each bl...
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:
