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.
You evil person :3
The "specific language feature" used to solve this Kata is one of the reasons I fell in love with the language!
Great Kata!
Scala Translation Kumited!
This comment is hidden because it contains spoiler information about the solution
Done!
Can you private all the refsol stuff as well?
Addressed!
Solution should not be inside object.
Fixed!
Fixed!
Random tests should run a consistent number of times, doing a random amount of tests between 1 and 10 is not really sufficient.
Just bump it up to 100 tests, there is no concern with performance here.
Random tests should probably also test for lazy evaluation.
.
Just because code compile doesn't mean it's correct. Is it really that hard to understand?
I'm sorry, I'm still not seeing how one would make the ternary usage compile, even if they just return the hard coded answers.
However, I'll give you that a random test is not so hard to implement. I have added them!
Loading more items...