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.
Your second "Test" case contains the following input string:
';) >( :D :) :D :D :) ^.^ :D :) ^.^ :D :D :D >:C >( :D :D :( :D :D :D :D :) :/ :D :) :) >:C >:C'
It translates to "Hello wohd!" not "Hello world!"
Thanks for the clarification.
I don't understand the results of the following five "Edge cases" as I believe in all cases that the Black King is in checkmate.
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['Q', 'W', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', 'B', '0', '0', '0', '0', '0', '0']
Black King= [7, 1] White King= [5, 1] White Queen= [5, 0]
True should equal False
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', 'Q', '0', '0', '0', 'W', '0']
['0', '0', '0', '0', 'B', '0', '0', '0']
Black King= [7, 4] White King= [6, 6] White Queen= [6, 2]
True should equal False
['0', '0', '0', '0', '0', 'B', '0', '0']
['0', '0', '0', 'W', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', 'Q', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
Black King= [0, 5] White King= [1, 3] White Queen= [2, 6]
True should equal False
['B', '0', 'W', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', 'Q', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
Black King= [0, 0] White King= [0, 2] White Queen= [2, 1]
True should equal False
['0', '0', '0', '0', 'B', '0', '0', '0']
['0', '0', 'W', '0', '0', '0', 'Q', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
Black King= [0, 4] White King= [1, 2] White Queen= [1, 6]
True should equal False
It appears that one of the expected answers for one of your tests is wrong. When n=6, you are currently looking for an answer of "1089".
I agree with dfhwze's comments below.
Here are my suggestions:
Thank you for the clarification
For your Test #11 (refer to the grid below), I received the following error message: "r2c2=1 is not a valid hidden single: expected false to be true". Can you please explain why this is not a valid hidden single? If you look at the upper left 3x3 block, the middle field in the second row cannot contain a 2 (in the same 3x3 block), a 3 (in the same 3x3 block, a 4 (in the same column), a 5 (in the same 3x3 block), a 6 (in the same column), a 7 (in the same row), an 8 (in the same row), or a 9 (in the same 3x3) block. For that reason, the value of r2c2 can only contain a 1. Thanks in advance for your feedback.
2 5 8 | . . . | . . .
. . . | 5 8 . | . 7 .
3 . 9 | . 4 . | . . .
------+-------+------
. . . | . . . | . . .
. 6 . | . . . | . . .
. . . | . . . | . . .
------+-------+------
. 4 6 | . . . | . . .
. . . | . . . | . . .
. . . | . . . | . . .
Thanks for the follow up. It seems to be working correctly now. Before, when I hit the "Test" button, my code would only pass if the output did NOT contain any subscripted numbers. However when I hit the "Attempt" button, my code wouldn't pass unless the output contained subscripted numbers.
Output format for your "tests" do no use the new "subscripts" format.
I am experiencing the exact same problem!
In the description for this kata you provide the following example:
For input [2, 3, 3, 4, 2, 3, 2]:
Ones: 2 => (1 * 2 = 2)
Twos: 3 => (2 * 3 = 6)
Threes: 3 => (3 * 3 = 9)
Fours: 4 => (4 * 4 = 16)
Fives: 2 => (5 * 2 = 10)
Sixes: 3 => (6 * 3 = 18)
Total: 2 + 6 + 9 + 16 + 10 + 18 = 63/63
Result: Pass
The input array in this example contains 7 values, not the 6 that were expected.
In your kata's description you state: "If a character occurs only once, it should not be followed by a count.". I get the following results however:
Your description should specify the desired output order for the results.
Your description should specify the expected output order for each of the couples. I received the following error message:
As you can see, I returned the correct couples. For each couple, I returned the two names in alphabetical order. Additionally, all couples were returned in alphabetical order. Why is my answer incorrect?
There is something wrong with this kata. After hitting the "Test" and "Attempt" buttons, I receive a message stating that "All test cases passed!" but I am never presented with an option to "Submit" my solution.
Loading more items...