Ad
  • Custom User Avatar

    Hi iamstone, nice kata! I have just translated to Ruby! ;)

  • Custom User Avatar

    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.

  • Custom User Avatar

    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?

  • Custom User Avatar

    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. :(

  • Custom User Avatar

    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

  • Custom User Avatar

    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?

  • Custom User Avatar

    Is this possible?

    Test Passed: Value == 450010
    Expected: -1, instead got: 450010.0