Create Job_scheduling.py#2459
Conversation
|
Hey @Mohitkumar6122, TravisCI finished with status TravisBuddy Request Identifier: 7bc852f0-fbe5-11ea-a343-ef792cdaf85e |
|
Hey @Mohitkumar6122, TravisCI finished with status TravisBuddy Request Identifier: 240b5760-fbef-11ea-a343-ef792cdaf85e |
|
How to remove trailing whitespaces warning in PEP8 format ? |
|
Hey @Mohitkumar6122, TravisCI finished with status TravisBuddy Request Identifier: 4146f1c0-fbf1-11ea-a343-ef792cdaf85e |
|
Hey @Mohitkumar6122, TravisCI finished with status TravisBuddy Request Identifier: e9f9a190-fbf2-11ea-a343-ef792cdaf85e |
|
Hey @Mohitkumar6122, TravisCI finished with status TravisBuddy Request Identifier: 983a8c60-fbf3-11ea-a343-ef792cdaf85e |
|
Finaly after 6 builds it passed xD |
|
https://github.com/TheAlgorithms/Python/tree/master/scheduling is the place for scheduling algorithms. |
ohh my bad, i just pasted it into greedy i will move it to scheduling ASAP. |
|
could you review my PR @cclauss |
|
Try to bind as few things to your objects as you can. |
thanks for the suggestion , i will keep it in mind. |
|
Hey @Mohitkumar6122, TravisCI finished with status TravisBuddy Request Identifier: 4c008d90-fcbb-11ea-a56a-67316b5b87cd |
|
Hey @Mohitkumar6122, TravisCI finished with status TravisBuddy Request Identifier: c220e100-fcbb-11ea-a56a-67316b5b87cd |
Travis tests have failedHey @Mohitkumar6122, TravisBuddy Request Identifier: 0beee2d0-fcfa-11ea-a56a-67316b5b87cd |
|
@cclauss could you review my PR ? |
I hope these changes help to clarify... I have rearranged the code in a way that will BREAK THE TESTS. I make this clearer, we will have a Job class and will remove the Schedule class and replace it with functions. Let's keep the Job class super simple. Its only goal is to carry around the deadline and profit for each Job so we do not move around separate list of ints. With these changes, each of our three main functions takes in a list of jobs. We should keep things flexible so that we could create `test_jobs_two` and run it thru all functions and get different results.
Create a Job classI hope these changes help to clarify... I have rearranged the code in a way that will BREAK THE TESTS. I make this clearer, we will have a With these changes, each of our three main functions takes in a list of jobs. We should keep things flexible so that we could create |
|
Hey @Mohitkumar6122, TravisCI finished with status TravisBuddy Request Identifier: d78a7b90-ffd7-11ea-9882-0125ab0f75bf |
your changes made code super easy and understandable but problem is that it isn't running any more 😟 |
Yes... I do not understand the algorithm so you will have to make it work again with the Jobs class and the function signatures that I provided. |
sure i will work on it ASAP but my exams are coming so maybe i will start working on it after 2 weeks 😄 |
The trouble starts with the |
|
Yes @spamegg1 that was already discussed in the comments above. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Please reopen this pull request once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to seek help from our Gitter or ping one of the reviewers. Thank you for your contributions! |
Describe your change:
Added a greedy algorithim for job scheduling . this algo is frequently asked in coding interview and it is one of the famous greedy algorithim.
Checklist:
Fixes: #{$ISSUE_NO}.