You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: solution/0600-0699/0621.Task Scheduler/README_EN.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@ tags:
21
21
22
22
<!-- description:start -->
23
23
24
-
<p>You are given an array of CPU <code>tasks</code>, each represented by letters A to Z, and a cooling time, <code>n</code>. Each cycle or interval allows the completion of one task. Tasks can be completed in any order, but there's a constraint: <strong>identical</strong> tasks must be separated by at least <code>n</code> intervals due to cooling time.</p>
24
+
<p>You are given an array of CPU <code>tasks</code>, each labeled with a letter from A to Z, and a number <code>n</code>. Each CPU interval can be idle or allow the completion of one task. Tasks can be completed in any order, but there's a constraint: there has to be a gap of <strong>at least</strong> <code>n</code> intervals between two tasks with the same label.</p>
25
25
26
-
<p>Return the <em>minimum number of intervals</em> required to complete all tasks.</p>
26
+
<p>Return the <strong>minimum</strong> number of CPU intervals required to complete all tasks.</p>
27
27
28
28
<p> </p>
29
29
<p><strongclass="example">Example 1:</strong></p>
@@ -50,7 +50,7 @@ font-size: 0.85rem;
50
50
51
51
<p><strong>Explanation:</strong> A possible sequence is: A -> B -> idle -> A -> B -> idle -> A -> B.</p>
52
52
53
-
<p>After completing task A, you must wait two cycles before doing A again. The same applies to task B. In the 3<sup>rd</sup> interval, neither A nor B can be done, so you idle. By the 4<sup>th</sup> cycle, you can do A again as 2 intervals have passed.</p>
53
+
<p>After completing task A, you must wait two intervals before doing A again. The same applies to task B. In the 3<sup>rd</sup> interval, neither A nor B can be done, so you idle. By the 4<sup>th</sup> interval, you can do A again as 2 intervals have passed.</p>
0 commit comments