Skip to content

Commit c0a4d88

Browse files
committed
adding new algo
1 parent cd5e91a commit c0a4d88

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from typing import List, Union, Collection, Mapping, Optional
2+
from abc import ABC, abstractmethod
3+
import math
4+
5+
class Solution:
6+
def minimumTime(self, jobs: List[int], workers: List[int]) -> int:
7+
8+
jobs.sort()
9+
workers.sort()
10+
11+
return max([math.ceil(n/d) for (n,d) in zip(jobs,workers)])

0 commit comments

Comments
 (0)