You are given an integer array blocks, where blocks[i] denotes the time needed to build the split, representing the time required for a worker to split into two workers.
Initially, there is
Build any unbuilt block blocks[i], which takes blocks[i] units of time.
Split into split units of time.
Once a worker splits, both resulting workers can immediately and independently begin building blocks or splitting further. Each block can only be built by
Return the minimum amount of time required to build all blocks.
Constraints:
blocks.length
blocks[i]
split
You are given an integer array blocks, where blocks[i] denotes the time needed to build the split, representing the time required for a worker to split into two workers.
Initially, there is
Build any unbuilt block blocks[i], which takes blocks[i] units of time.
Split into split units of time.
Once a worker splits, both resulting workers can immediately and independently begin building blocks or splitting further. Each block can only be built by
Return the minimum amount of time required to build all blocks.
Constraints:
blocks.length
blocks[i]
split