Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Can we use binary search to solve this problem?
Do a binary search on the number of seconds to check if it's enough to reduce the mountain height to 0 or less with all workers working simultaneously.