Array
3296. Minimum Number of Seconds to Make Mountain Height Zero
Given a mountain height mountainHeight and an array workerTimes. A worker with time t, reducing the mountain by x units, spends t·(1+2+…+x) = t·x(x+1)/2 seconds; all work in parallel. Find the…
Loading…