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.
because using the brackets ensures that you're calculating a + b first (according to bidmas, brackets are calculated first), but doing 180 - a - b isn't the same.
Lua translation
fixed
added to JavaScript (the RNG only goes up to
40, for which the answer is already tens of thousands of chars long)chnaged to
assert.strictEqual()Really good kata.
Nice kata!
Julia translation
Haskell translation
I have added some for the Rust translation, but ran into an issue with the enormous size of the return values, which I've listed them above.
If such tests are acceptable, I can update the JavaScript version as well.
Rust translation kumited.
It includes random tests, but due to the returned
Stringincreasing rapidly in length withnit is limited to [0, 39]:StringlengthI used
Noneinstead of-1forn = 0, as the former is more idiomatic in Rust.No random tests.
Very nice kata. I liked to solve it, I got a lot of fun!:)
Loading more items...