Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day 397 #797

Closed
vaskoz opened this issue Dec 22, 2019 · 0 comments · Fixed by #798
Closed

Day 397 #797

vaskoz opened this issue Dec 22, 2019 · 0 comments · Fixed by #798
Assignees

Comments

@vaskoz
Copy link
Owner

vaskoz commented Dec 22, 2019

Good morning! Here's your coding interview problem for today.

This problem was asked by Microsoft.

You are given a list of jobs to be done, where each job is represented by a start time and end time. Two jobs are compatible if they don't overlap. Find the largest subset of compatible jobs.

For example, given the following jobs (there is no guarantee that jobs will be sorted):

[(0, 6),
(1, 4),
(3, 5),
(3, 8),
(4, 7),
(5, 9),
(6, 10),
(8, 11)]

Return:

[(1, 4),
(4, 7),
(8, 11)]
@vaskoz vaskoz self-assigned this Dec 22, 2019
@vaskoz vaskoz mentioned this issue Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant