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.
Yes. So is ToList.
To learn software, of course. The only thing I've refused to learn is statistics.
Why is it necessary to add a definition for loop? I am fairly new to ruby, but I thought loop was a builtin keyword in the language. This kata has left me very confused.
I solved this kata without ever learning what a normal distribution is, which was for some reason more fun.
3888 is the maximum value representable by roman numerals as specified in the problem statement.
I'm having trouble understanding what this means in the problem description: "During the first call, the "indications" parameter is null, then it is the result array of the confrontation between last proposition and solution."
During the first call, there is no last proposition, so I'm not really clear on what the output should be. In the example, the output was [0, 2, 4]. Is that just intended to be hardcoded when the input is null?
Edit: Ok, I figured out a solution. I now understand that [0, 2, 4] is chosen arbitrarily. A working solution could return any array for a null input.
@eugene-bulkin: Is the site working for you? I was able to direct link to this comment from the comment thread, but the entire rest of the site seems to be malfunctioning, even after clearing my browser cache. The javascript console reports "Uncaught TypeError: undefined is not a function".
And now it's working again. I'm not sure what happened.
There should probably be a test case that shows the desired behavior when the specified path is multiple branches down a non-existent attribute name. Some implementations return undefined. Others throw.
Doh! Right you are. That's what I get for not reading.
This doesn't seem to work for Math.floor(-0.5) for example. The correct result should be -1, not 0.
This seems to fail for [2, 3, 4, 5, 5]. The correct result is 100, but this gives 50.
It's probably because you are ranked 3kyu and this is a 6kyu ranked problem. Solve some harder katas.
"Should return true when passed (1, NaN, 3)"
Isn't "Nan" not-a-number?
This seems to fail for "1.2.3.4."
This comment is hidden because it contains spoiler information about the solution
Loading more items...