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.
it's so easy for me. I'm very happy to improve my logic in javascript with codewars
oh, interesting.
This code is too complicated to read, for real!
same :D :D :D
oh no,your tab......
why?
i would have thought the arrow function would be better practice but seems not by way of vote, anyone keen to explain?
I tried coming up with some unique ways to call 'hello world!'. Had to settle for the easiest method though :P
Who else did the task in the simplest and easiest possible way just so they could see what others had done? Come on now, be honest! ;-)
I wouldn't think so, might be base of using Captial letters in the String?
makes the code readable
nem pensei em usar assim, vou treinar mais kkkk
Creating class like that feels kinda wierd tbh.
You might want to clarify what empty elements mean, because different languages may have different definitions.
upon further exploration, it's because I change the argument arrays, and this makes the unit test expected calculation misbehave. Either the unit tests should be fixed (to at least display a meaningful error in that case...), or the instructions clarified.
Is there some issue with the random tests in ruby? I keep getting failures because it expects an empty array when I return an interleaved array. For example, in one of the random tests, the input was:
3 <<<<
t k 1 0 c l y <<<<
q x 5 <<<<
l 8 o s g a v <<<<
m v <<<<
j k s v r <<<<
b 4 s r f f 3 r <<<<
4 z 0 6 <<<<
<<<<
(each row is an array)
and I got the error message:
Expected: [], instead got: [3, "t", "q", "l", "m", "j", "b", 4, nil, nil, "k", "x", 8, "v", "k", 4, "z", nil, nil, 1, 5, "o", nil, "s", "s", 0, nil, nil, 0, nil, "s", nil, "v", "r", 6, nil, nil, "c", nil, "g", nil, "r", "f", nil, nil, nil, "l", nil, "a", nil, nil, "f", nil, nil, nil, "y", nil, "v", nil, nil, 3, nil, nil, nil, nil, nil, nil, nil, nil, "r", nil, nil]
Loading more items...