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.
Hi, as the "chars" string is sorted, you don't have to use Contains which will scan the all string. You can compare to the last character of result to determine if addition of character is ok.
Look at my solution.
Yes, release with streams is even ready for build numbers! Good catch.
Hi, in python version 2.7, there's a bug in the test (attempt) :
Traceback (most recent call last):
File "main.py", line 44, in
do_test()
File "main.py", line 17, in do_test
from random import randint, choices
ImportError: cannot import name choices
Hi,
Your solution is incorrect if D is between mouse and cat rather than cat and mouse. The order of position of cat and mouse should not change the result !!
Bye.
First of all, you already saw that "each" is exactly the same as forEach for an array object. So what could be "each" ?
Second, "having" and "being_the" are not related to any "Thing" object, right ? But these and their properties are going to be evaluated before the call to "each". What could they be ?
For the function "speak", I'm still trying to figure it out !
Hi, I've forked it : https://www.codewars.com/kumite/59f64826b2f32a61f20000ae?sel=5a114f54c374cbf47800004a
It was only a problem of closure. I didn't know that test functions are run asynchronously so that the captured variable was updated in every test function I created before being run. I don't think this is documented somewhere. It would be good to stress that point to avoid such mistakes in the future.
Could you test it again and approve as you are 4000+ honor and mattc does not respond ?
By the way, I've got two other pending translations in Python and Java, could you approve them ?
I fixed the issue but when I try to republish it, it says "kumite was published with failed test". Maybe Matt c or you could approve the change.
Hi, thanks I'll fix it tomorrow.
Actions() is a function preloaded that returns an array of the functions available to your machine. It spares you to code them as you did, already provided.
Contract done.
Java Translation added.
Python translation added.
Hi mattc, Could you have a look at my translation ?
Thanks in advance.
Oh, and if you wish I've got an other pending translation : https://www.codewars.com/kumite/59f64826b2f32a61f20000ae?sel=59f64826b2f32a61f20000ae
Thanks in advance.
Hi, I moved the code but something strange happens. The tests all passed but then I republished I got the message that some test failed.
Hum, yet all seemed correct.
Loading more items...