Learn
Practice
Newsletter
Resources
Resume
New
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Maximum Profit in Job Scheduling
Bookmark
Input
Example 1
Example 2
Same Start
No Overlap
All Overlap
Custom
startTime
=
[1, 2, 3, 3]
,
endTime
=
[3, 4, 5, 6]
,
profit
=
[50, 10, 40, 70]
Jobs (sorted by end time)
1
2
3
4
5
6
0
$50
1-3
1
$10
2-4
2
$40
3-5
3
$70
3-6
algo
master
.
io
Step:
Created 4 jobs from input arrays
0 / 12
Input
Example 1
Example 2
Same Start
No Overlap
All Overlap
Custom
startTime
=
[1, 2, 3, 3]
,
endTime
=
[3, 4, 5, 6]
,
profit
=
[50, 10, 40, 70]
0 / 12
Jobs (sorted by end time)
1
2
3
4
5
6
0
$50
1-3
1
$10
2-4
2
$40
3-5
3
$70
3-6
algo
master
.
io
Step:
Created 4 jobs from input arrays