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.
This comment is hidden because it contains spoiler information about the solution
Lots of guys passed the Rust kata so I am sure there is a problem in your code.
Avoid to mutate the input; don't sort too soon; rather square elements of a instead of taking the square root of elements of b (you are introducing float approximations).
Good luck and notice than downvoting others' answers doesnt help:-)
I coped response from console and this is clearly reproducible. My function return
false
but assertion in tests expecttrue
.This comment is hidden because it contains spoiler information about the solution
Ok. I know that you tried some. I already spend two days fighting with this cata. Can you, please, answer on My question.
I tried some solutions and I saw no problems.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Really sorry, English is not my "mother-tongue" but it is not useful to be unpleasant...
I don't have any "ego". If you knew how old I am you could understand that.
I care that others could learn otherwise I wouldn't have written as many translations.
Moreover you downvote my posts to no avail since I could do the same with yours.
PS: by the way the description was rewritten by another guy... but it seems that it is the same gibberish:-) I am waiting your proposals and your authored kata. Criticizing is easy, doing is less.
This comment is hidden because it contains spoiler information about the solution
In the explanation it is said:
I think you wrongly read the description or maybe I didn't understand your post. You can note that 350 guys passed the Rust kata.
This comment is hidden because it contains spoiler information about the solution
Exactly. This is very readable and readability is more important than performance. Also, this may be even more performant, particularly for small arrays, because you can use existing, already optimized functions instead of writing custom code that neeeds to be interpreted.
This comment is hidden because it contains spoiler information about the solution
I'm not sure how JavaScript is currently defined in Codewars, but when this was published, it was probably ES5 which had no spread operator. Wwhat's the "best" solution can change over time, and even depends on the platform. What's best for Internet Explorer, may not be the best for Firefox. What's best for Firefox 3 years ago may not be the best today. And what was considered "difficult" to read yesterday may be considered simple today, when certain idioms have become more widely supported and used.
Loading more items...