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.
I was able to figure it out when building a more complete game.
The kata is not flawed; thousands of people have solved it.
The idea is simply that the six functions listed are available to you to call upon.
Instead, your function returns strings of the function names, where nowhere in the description did it ask you to return anything.
Take note that the eror message says:
should call all 6 functions
followed by0 should equal 6
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You can approach it in different ways, but the constraints are clear: determine the most probable language using maximum
n * 7
tries.I updated the sample tests in python to stop when the maximum number of tries is reached. Haskell and JS should be reviewed by the translators.
Cheers
This comment is hidden because it contains spoiler information about the solution
From the description:
Your code includes a nested loop, thus asking for response
n * 7 * 5
times in total, which is greater than the allowedn * 7
.ps: next time please mark your comment as a
question
, as this is not a kataissue
(1000+ people solved the kata and no sign of such problem in the comments).This comment is hidden because it contains spoiler information about the solution
Why do we need random tests with only two possible input values?
Not a kata suggestion
The biggest issue I have with this kata is that the provided list of fruit is not formatted so folks who want to actually code a solution need to spend unnecessary time creating a formatted list or dictionary.
Please do the following:
Do it correctly and I'll approve it.
Sure I can update that.
Modeled off of another translation.
I modeled the tests off of a different language... would love more information on formulating random tests.
Loading more items...