6 kyu
Data Analysis Following Migration
14 of 101anter69
Loading description...
Date Time
Algorithms
Data Science
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.
a = b
edge cases, onlya < b
.uncertain
is not complete, you should add that cases where there is no valid configuration possible, should also be included herea = b
random(5-10-15-20-...)
uncertain
, although I think invalid configurations are never generatedVery clever and interesting Kata. Thanks.
Small suggestion : replace
non-negative duration
bystart_date <= end_date
updated description as suggested
One of Codewars best timestamp katas no doubt !!! ^^ ~~
thanks
Ruby 3.0 should be enabled, see this to learn how to do it
Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)
fixed
python version does not follow the same requirements than the ruby version (compare my ruby solution and my python one: I forgot to filter some results in python but still passed all the tests)
Note: filtering the results in python, my solution fails all the random tests but not the fixed tests (meaning your fixed tests are not enough ;)
Could you add more details? Your solution passes the random tests... I'm probably not getting something :-/
This comment has been hidden.
see upper, plz
ok, I just tried both your python and ruby code and the python one is faulty:
Using this input:
In ruby, your code expects
[6,0,2]
while it outputs[4,0,4]
in python. The problems are about those two dates:"1999-09-09"
and"2013-06-06"
(at least that's where the differences in my aglos showed up)This comment has been hidden.
ok, now that I saw the tests...
+1 ;-)
btw, you didn't tell if
starting date == finishind date
should be considered valid or not.Judging from my result vs the expected result it seems that it is considered valid when
starting date <= finished date
.that would look reasonnable, yes.
The description explicitly says:
Unpublished temporarily for review. Thanks for the feedback so far.
the distinction between those two seems at least very unclear to me, if not wrong:
Because in it's current form it's wrong, and as there are multiple valid combinations, there is no way to fix it.
Maybe I should add those to the "uncertain" lot? I'm a bit uncertain ;-)
Simplified the choices to "correct", "recoverable", "uncertain". Also added more details about these categories.
I didn't see this message, one month ago, sorry. Your last changes seems good to me.
The message is from today, so you couldn't see it a month ago :-)
na, not your last one, the one just above. ;)
python version on its way? x)
Sure
Python is now available!