You are given an integer mountainHeight and an integer array workerTimes.
Several workers work simultaneously to reduce the height of the mountain. If worker i decides to decrease the mountain height by workerTimes[i] $ imes (1 + 2 + \dots + x)$ seconds.
Return the minimum number of seconds required to reduce the mountain height to
Constraints:
mountainHeight
workerTimes.length
workerTimes[i]
You are given an integer mountainHeight and an integer array workerTimes.
Several workers work simultaneously to reduce the height of the mountain. If worker i decides to decrease the mountain height by workerTimes[i] $ imes (1 + 2 + \dots + x)$ seconds.
Return the minimum number of seconds required to reduce the mountain height to
Constraints:
mountainHeight
workerTimes.length
workerTimes[i]