Skip to content

Commit 0223fd0

Browse files
committed
Runtime: 990 ms (Top 41.71%) | Memory: 47.5 MB (Top 21.04%)
1 parent bd0736e commit 0223fd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/M/Maximum Profit in Job Scheduling/Maximum Profit in Job Scheduling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 990 ms (Top 41.71%) | Memory: 47.5 MB (Top 21.04%)
12
class Solution:
23
def jobScheduling(self, startTime: List[int], endTime: List[int], profit: List[int]) -> int:
34
n = len(startTime)
@@ -12,4 +13,4 @@ def recur(i):
1213
one = jobs[i][2] + recur(j)
1314
two = recur(i+1)
1415
return max(one, two)
15-
return recur(0)
16+
return recur(0)

0 commit comments

Comments
 (0)