Skip to content

Commit b432ea3

Browse files
refactor 621
1 parent 8c44c2a commit b432ea3

File tree

1 file changed

+0
-20
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-20
lines changed

src/main/java/com/fishercoder/solutions/_621.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,6 @@
66
import java.util.Map;
77
import java.util.PriorityQueue;
88

9-
/**
10-
* 621. Task Scheduler
11-
*
12-
* Given a char array representing tasks CPU need to do.
13-
* It contains capital letters A to Z where different letters represent different tasks.
14-
* Tasks could be done without original order.
15-
* Each task could be done in one interval. For each interval, CPU could finish one task or just be idle.
16-
* However, there is a non-negative cooling interval n that means between two same tasks,
17-
* there must be at least n intervals that CPU are doing different tasks or just be idle.
18-
* You need to return the least number of intervals the CPU will take to finish all the given tasks.
19-
20-
Example 1:
21-
Input: tasks = ['A','A','A','B','B','B'], n = 2
22-
Output: 8
23-
Explanation: A -> B -> idle -> A -> B -> idle -> A -> B.
24-
25-
Note:
26-
The number of tasks is in the range [1, 10000].
27-
The integer n is in the range [0, 100].
28-
*/
299
public class _621 {
3010

3111
public static class Solution1 {

0 commit comments

Comments
 (0)