← All problemsSign in

3296. Minimum Number of Seconds to Make Mountain Height Zero

LeetCodeArrayMathBinary SearchGreedyHeap (Priority Queue)Open on judge ↗

You are given an integer mountainHeight denoting the height of a mountain. You are also given an integer array workerTimes representing the work time of workers in seconds. Each worker may reduce the mountain's height by any non-negative integer amount. If worker i reduces the height by x, then: - reducing the first unit of height takes workerTimes[i] seconds, - reducing the second unit takes

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start