6 kyu
Operating System Scheduling #1 : FCFS scheduling
66 of 87G_kuldeep
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
What happened to the rest of this series? :(
Could be e great kata... but for those rounding sh...
C++ fork that handles this and this issues.
Please, review and reject/accept.
While solving in C++ I (and, I believe, a lot of other solvers) had a problem with
rounded to two decimal places
part. It practically turns the kata into the guessing game. A problem is that the way you do that may change the result, and since this kata usesAssert::That(..., Equals(...))
for comparingdouble
s it actually creates a huge obstacle. E.g.Something should probably done with this, because it makes such a good kata practically unsolvable if you're unlucky enough.
In C++ random tests are not random at all. Please, check this out -> https://docs.codewars.com/languages/cpp/authoring#random-utilities
C ++ language. In a random test with data {{11, 69}, {62, 24}, {67, 30}, {68, 36}, {82, 31}}: Expected: equal to [ 137.81, 79.8, 41.8, 38 ] Actual: [ 137.8, 79.8, 41.8, 38 ].
But 689 / 5 = 137.80.
This is the best kata I have ever seen here.
Well written Kata and great concept G_kuldeep! I am looking forwards to the rest of the series!
Hey G_kuldeep, this Kata is awesome! I was just studying scheduling algorithms when I stumbled upon this Kata, great timing.
My only feedback is to clean up the description a little. There are some semi-colons instead of apostophes for a word or two, and there were a few misspellings.
But seriously, great kata, I bookmarked it! Are you going to add new ones in the series?! I am excited!
Glad you liked it and i am going to add all those listed in Scheduling Algorithms section.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
You are right because it;ll be always sorted in real situation (time--->)
I think it will confuse users as you are telling me so, i removed that sorting thing. thanks:D (hey, don;t forget to give feedback)