Ad
  • Custom User Avatar

    added to Ruby

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Wow, I'm very impressed that this literally passes everything except the one case you mentioned. I'll see if I'm still allowed to edit this kata to add in that test case. Thanks a lot for the feedback!

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I would like to see a solution that could pass all of the other tests, but not this one. Even if you did figure one out, the random tests should catch any invalid solutions anyway. I'm interested in seeing the solution though, and if it is a big enough issue, then I will change things.

  • Custom User Avatar

    There's at least one solution that passes all existing tests but would fail this valid test, please consider adding the following test:

    Test.assert_equals(validate_word("abccabcd"), false)
    
  • Custom User Avatar

    GiacomoSorbi and MMMAAANNN have Edited the description and Added test cases Mark the issue resolved if satified, Happy Coding ^_^

  • Custom User Avatar

    Use more descriptive parameter names in the beginning code template. list_ and n could be more descriptive and the underscore suffix is unconventional for Ruby. Suggestion: words and sort_char_position as clearer param names. Good for participants to see good naming practices in the provided code.

  • Custom User Avatar

    My first solution didn't work for negative numbers, but instead of getting a nice error I got that true does not equal false. It should tell me what went wrong, like "isOdd(5) was expected to return true, but instead your implementation returned false."

  • Custom User Avatar

    Clarify description of handling negative floats

  • Custom User Avatar

    Thank you for the feedback. The test cases were actually already checking for the case of nil. I've added false to the list of possible values to check. When you run the acceptance tests, you see what memoized values they are checking - nil and false should be there, you can verify yourself.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    That's a cool idea, but I can't change the test cases once over 500 people have completed the kata. Sorry!

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...