diff --git a/solution/3500-3599/3506.Find Time Required to Eliminate Bacterial Strains II/README.md b/solution/3500-3599/3506.Find Time Required to Eliminate Bacterial Strains II/README.md deleted file mode 100644 index 91a92d2153813..0000000000000 --- a/solution/3500-3599/3506.Find Time Required to Eliminate Bacterial Strains II/README.md +++ /dev/null @@ -1,119 +0,0 @@ ---- -comments: true -difficulty: 困难 -edit_url: https://github.com/doocs/leetcode/edit/main/solution/3500-3599/3506.Find%20Time%20Required%20to%20Eliminate%20Bacterial%20Strains%20II/README.md ---- - - - -# [3506. Find Time Required to Eliminate Bacterial Strains II 🔒](https://leetcode.cn/problems/find-time-required-to-eliminate-bacterial-strains-ii) - -[English Version](/solution/3500-3599/3506.Find%20Time%20Required%20to%20Eliminate%20Bacterial%20Strains%20II/README_EN.md) - -## 题目描述 - - - -
You are given an integer array timeReq
and an integer splitTime
.
In the microscopic world of the human body, the immune system faces an extraordinary challenge: combatting a rapidly multiplying bacterial colony that threatens the body's survival.
- -Initially, only one white blood cell (WBC) is deployed to eliminate the bacteria. However, the lone WBC quickly realizes it cannot keep up with the bacterial growth rate.
- -The WBC devises a clever strategy to fight the bacteria:
- -ith
bacterial strain takes timeReq[i]
units of time to be eliminated.splitTime
units of time. Once split, the two WBCs can work in parallel on eliminating the bacteria.You must determine the minimum time required to eliminate all the bacterial strains.
- -Note that the bacterial strains can be eliminated in any order.
- --
Example 1:
- -Input: timeReq = [10,4,5], splitTime = 2
- -Output: 12
- -Explanation:
- -The elimination process goes as follows:
- -t = 2 + 10 = 12.
The other WBC splits again, using 2 units of time.t = 2 + 2 + 4
and t = 2 + 2 + 5
.Example 2:
- -Input: timeReq = [10,4], splitTime = 5
- -Output:15
- -Explanation:
- -The elimination process goes as follows:
- -t = 5 + 10
and t = 5 + 4
.-
Constraints:
- -2 <= timeReq.length <= 105
1 <= timeReq[i] <= 109
1 <= splitTime <= 109
You are given an integer array timeReq
and an integer splitTime
.
In the microscopic world of the human body, the immune system faces an extraordinary challenge: combatting a rapidly multiplying bacterial colony that threatens the body's survival.
- -Initially, only one white blood cell (WBC) is deployed to eliminate the bacteria. However, the lone WBC quickly realizes it cannot keep up with the bacterial growth rate.
- -The WBC devises a clever strategy to fight the bacteria:
- -ith
bacterial strain takes timeReq[i]
units of time to be eliminated.splitTime
units of time. Once split, the two WBCs can work in parallel on eliminating the bacteria.You must determine the minimum time required to eliminate all the bacterial strains.
- -Note that the bacterial strains can be eliminated in any order.
- --
Example 1:
- -Input: timeReq = [10,4,5], splitTime = 2
- -Output: 12
- -Explanation:
- -The elimination process goes as follows:
- -t = 2 + 10 = 12.
The other WBC splits again, using 2 units of time.t = 2 + 2 + 4
and t = 2 + 2 + 5
.Example 2:
- -Input: timeReq = [10,4], splitTime = 5
- -Output:15
- -Explanation:
- -The elimination process goes as follows:
- -t = 5 + 10
and t = 5 + 4
.-
Constraints:
- -2 <= timeReq.length <= 105
1 <= timeReq[i] <= 109
1 <= splitTime <= 109