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.
That was fun :-)
Ruby version kumited, please check and comment or approve.
Ruby translation kumited, please check (and approve :-))
Ruby translation kumited
Oooh, that took some working out, and some memory dredging...
Java Translation
Tricky, but fun, made me think
...but doesn't also show the actual input...
Test feesback messages have been adjusted to include the actual output.
Ruby version kumited
Ruby translation
Unused functions removed, it would be much easier if Ruby's rand() accepted a range...
Ummm, the assertion messages do show the inputs, as in
rocks(13) should return 17.
Though they weren't showing for the random tests :-)
Ruby 3.0 version in this fork
Updated to use RSpec for tests for Ruby 3.0, otherwise no changes
nice little kata, took some time and scribbling on actual paper to work it out the first time...
This comment is hidden because it contains spoiler information about the solution
Loading more items...