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.
Sometimes the best problems are slightly annoying, in a way that requires you to think about them. This is a good example of that.
C# Translation
approved
Haskell translation
I've updated the description to more clearly specify how to determine a potential friend.
Approved
python new test framework is required. updated in this fork
I am sorry.
from description: "Your friend has told you that he will be wearing a RED mask, and has TWO other friends with him, both wearing BLUE masks."
I did not understand when I looked to test cases. Can someone explain to me?
Which one is true? The kata is asking which is it?
The description can be better.
Why is the answer 1?
Red's location is 2.
The Kata is asking for the possible combinations of one red and two blues, but ONLY cares about the position of the red.
tag added
there are still many possible interpretations of the task, as it currently is described. The very least would be to emphasise several well chosen examples in the description. Better (but maybe too much?), explain what "being with 2 friends" actually means.
That, or add a
puzzle
tag to the kata (would make sense too).Bumping translation.
I'm finding two of the sample tests a bit confusing in how they seem to be calculating the possibilities differently.
If ['red','blue','blue','red'] results in 2 possibilities, how is ['blue','red','blue','blue','red','blue','red'] resulting in 2 and not more possibilities?
In the second array, I can form: "blue red blue", "red blue blue", "blue blue red", "blue red blue" ==> 4 possibilities.
Isn't the Kata asking for the possible number of combinations of one red and two blues? Or is it that each combination has to be unique?
Would appreciate some clarification.
Python translation available. Please, review and approve.
There're random tests now. Shuffling the fixed ones is not needless.
Loading more items...