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.
I like this one as well. Pretty much clean, but I think that we are missing this part "Signature will always contain 3 numbers;"
I like this answer a lot.
You should replace
arr = reducepairs(arr)
toreturn reducepairs(arr)
.This way you would get a tail-call and avoid stack overflows.
If no move is found it will
return arr
anyway and the call is already there.This is a great solution! Very clean and a creative use of the
slice()
method.Man, I expected to see a lot of golfy solutions compared to mine, but holy shit. Ruby has way too many handy array functions for its own good. I guess I get nerd points for being the only one (I think) who did it with trig...
Lovely kata, forgot to eat dinner because I couldn't pry myself away.
This comment is hidden because it contains spoiler information about the solution
The Ruby tests have an extra weather type - "overcast" - that isn't given in the instructions.
Can you post your code marked as spoiler? Maybe I can help you.
I cant use swift 4?
On this https://www.codewars.com/kata/descending-order/train/swift;
this https://www.codewars.com/kata/toleetspeak/train/swift
and a lot others I have tried. Swift 4 is deactivated on all those katas.
Can we somehow have swift 4 enabled for all these katas?
Not sure if you've figured it out in the meantime, but since this comment thread helped me get the right answer I figured I should return the favor:
Where does wallpaper go?
This. Or, in keeping with the real-world problem being described:
"
l
,w
, andh
should be positive values, but John has been to known make mistakes when writing his measurements down. Be sure to let him know that he shouldn't buy any wallpaper if you notice an error."The Katas page would benefit, IMO, from a filter for "show only katas I haven't completed in the specified language".
"Katas I haven't completed" hides those that I've gone through in Lua even though I have Language set to Kotlin.
"All katas" shows everything available for Kotlin, but a big shiny checkmark for the ones I've done in Lua.
Alternatively, or in addition, the "completed" checkmark might make more sense as a checkmark/aura/something overlaid on the language icon(s) that have been completed.
This comment is hidden because it contains spoiler information about the solution
The Lua version desperately needs these tests. I was at a complete loss until I found these.
Some further Googling later, and eventually having to borrow a few lines from Rosetta, I figured it out. Thanks.
IMO "you should not have to generate a list of prime numbers" should be in the description, as the correct solution(s) are still somewhat technical anyway.
Loading more items...