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.
Hi iamstone, nice kata! I have just translated to Ruby! ;)
I have done everything right and reproduced all the tests, however when submiting there was no way I could get it accepted. I decided then unlock the solutions, but surprisingly there were no valid solutions.
It is optimized, otherwise it wouldn't take less than 4000ms.
By the way, I have reproduced your 27 tests and got at the end:
27 Passed
0 Failed
0 Errors
Process took 4101ms to complete
Are you sure your Ruby test cases don't have errors?
Ruby, when I run with an extra "." at the end of the string, the kata is completed (Incorrect, of course) showing:
0 Passed
27 Failed
0 Errors
Process took 3955ms to complete
However, removing this "." makes the process take more than 6000ms. :(
Man, when I run the final solution it says it took over 6000ms, but when I add any character to the final string, which makes all the answers to be wrong, it runs on time (~4500ms).
How's that possible? Does correct solutions take more time to compile than wrong solutions? :S
Hey, there is one thing to correct in Ruby version's tests. In the
expected
, I have changed to the following argument so the test could work!greeting_for_all_friends(["Bilal"]).nil?
Is this possible?
Test Passed: Value == 450010
Expected: -1, instead got: 450010.0