Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 3296. Minimum Number of Seconds to Make Mountain Height Zero
Given a mountain height H and workers where assigning x units to worker i costs workerTimes[i] * x*(x+1)/2 seconds, allocate integer reductions summing to H to minimize the makespan (maximum worker time). The core challenge is distributing workload across machines with convex (quadratic) cost functions, typically solved by binary-searching the time and checking each worker's maximum reducible units under that time.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.