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.
In the random test for use case (5000, 6), I am getting error as expected:<[122, 20[10], 244875]> but was:<[122, 20[04], 244875]> .
My mean is coming 2007 and hence there are two equally distant numbers as 2004 and 2010 from the mean. As per definition, the smaller number is to be selected. Where am I making mistake?
expected:<[]> but was:<[a little]> . The printed error is in reverse. It should be expected:<[a little]> but was: <[]>.
This is for inputs higher than 6.
StringBuffer practice
Test11 and TestA look to be dodgy.
Done!
Done!
assertEquals(Kata.nameInStr("A crew that boards the ship", "chris"), false);
As per sample test, expected result is false. But on testing, the feedback is
expected:true but was:false
for the same.
hmph..done at last.
It is the description which is making this problem seem harder than it really is. The authors may need to revisit and define it properly.
Yup, doesn't make sense to me too. I am getting similar error with second string being empty. But still, have made the adjustment as per the error.
I am getting this error on Test.
array lengths differed, expected.length=1 actual.length=0
results are OK on IDE. What could be the reason?
Please elaborte. Sorry, I am new here. When I am using Test button. The results are coming OK. But, on Attempt button, the result is changing.
Everthing works on IDE with same data as full suite test. But is giving wrong output here for [].
IDE(Intellij) result: Enter a string:
Hello[]World
Result[He, ll, o[] , Wo, rl, d_]
Codewars testing window: Should handle Space in string expected:<[He, ll, o[] , Wo, rl, d_]> but was:<[He, ll, o[,] , Wo, rl, d_]>