Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Why is the Java translation not merged yet? is there something wrong with it?
It is still unclear whether we have to define our own
wash
andstore
methods or they have been defined from this statement alone.I did not check whether the pants belong to grandpa, i.e, inadequate testing coverage
If you know how to use date objects it is 8 kyu,
else it is 'Go on a search journey'
so I feel to justify 8 kyu there should be a link in the description.
CoffeeScript translation
CoffeeScript translation
JS:
Decription said:
But there is no test case to verify it.
Both fixed testcases and random testcases.
And I copy and paste your verify code and then run it with this test case:
Your code returns
false
instead oftrue
.BTW:
I've not try submit code in python.
And I think that the empty string is NOT a word.
What's the expected answer for
mispelled('versed', 'v5ersed')
?If you go by:
Then the answer is true.
It doesn't say anything about a character in the middle. Both control functions in Python and JS expect false.
This comment is hidden because it contains spoiler information about the solution
Python: tests are susceptible to floating point inaccuracies.
For input
running_pace(0.1, "158:05")
I get a failed assertion'1580:50' should equal '1580:49'
.My solution comes up with total time of
94850.0
seconds, and reference solution calculates total time as94849.99999999999
seconds.As an effect, my solution inconsistently fails ~1/5 test runs.
runningPace(2.1, "201:01")
should be added to the fixed tests, as some solutions fail this
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
JS: Should increase the amount of test cases to increase the chance of generating the same string. Otherwise the photoManager is useless and the users don't have to check for existing strings.
Can someone please explaing to me how is this possible?
test.assert_equals(period_is_late(date(2016, 6, 13), date(2016, 7, 16), 35), False)
test.assert_equals(period_is_late(date(2016, 6, 13), date(2016, 7, 16), 28), True)
Loading more items...