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.
OP solved it, closing
OP solved it, closing
OP solved it, closing
sorry, but your code is wrong, regardless of what happens offsite. the test example I gave is easy to follow. the kata tests are not flawed
So, to be clear what you mean to say is: if you use the test example I showed you on
your machine
, your code returns7
, but the exact same code returns-1
on Codewars?What you really need to do is take the input from a failed test and put that in
your machine
, for example (you can easily see this is a correct test):...from there you have a means to debug.
In the future, only post as an
issue
is you can prove a problem with the kata, otherwise post as aquestion
.Compare words (groups of words) separated by a comma. Also, when comparing, you must take the case of letters into account, even though the description says otherwise. The lexicographic sorting is also unnecessary if the letters match.
Well, that's what you thought it was, read it again after you got what to do, propose a better wording. Or maybe some examples in the description would clarify it better?
Not a kata suggestion
What you get is:
not a kata suggestion
Thank you!
No, a and b are two separate elements in the array, you can't use a single element which has both like you wrote.
There's an overlap here:
This kata is really easy. If you spend a lot of time on it it's just you're probably just missing the point and it doesn´t worth it. A good choice in those cases is just to move on to other katas. You may come back to it later and maybe you will solve it in a snap then.
Loading more items...