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.
added to Ruby
This comment is hidden because it contains spoiler information about the solution
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!
This comment is hidden because it contains spoiler information about the solution
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.
There's at least one solution that passes all existing tests but would fail this valid test, please consider adding the following test:
GiacomoSorbi and MMMAAANNN have
Edited the description and Added test cases
Mark the issue resolved if satified,Happy Coding ^_^
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.
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."
Clarify description of handling negative floats
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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
That's a cool idea, but I can't change the test cases once over 500 people have completed the kata. Sorry!
This comment is hidden because it contains spoiler information about the solution
Loading more items...