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.
Solution is neat but does not recognize the modulo as an operator
hi,
sieve test case in java outputs 2 but expected 23571113171923293137.
I've debugged it carefully and that is the only test which is not passing.
Having troubles with the factorial test case in Java, anyone managed to pass it?
in any case in a single node of -5 it should return -5.
I agree I will change the case that the root is always not null, thanks again.
I agree I will change the case that the root is always not null, thanks again.
zero.
Cleared that in the description thanks.
Hi I'm failing a random test.
I have printedout the board, the attacks and the expected results.
board {
new int[]{0,0,1,2,2,0},
new int[]{0,3,0,1,0,0},
new int[]{0,3,0,0,0,0},
new int[]{0,3,0,0,0,0}
};
attacks {
{3,4},
{4,3},
{4,4}
};
expected:<{damaged=1.0, sunk=1.0, notTouched=1.0, points=0.5}> but was:<{damaged=1.0, sunk=2.0, notTouched=1.0, points=1.5}>
As I understood in {0,0,[1],[2,2],0} are 2 distinct ships and an attack on {3,4} means the ship has sunk. In that case {4,3} is another sunk ship.
Please advise.
thanks, I really like the kata
randomizeTest: Player hand 'AS 3C KH AD KH', opponent hand: '7C 7S 3S 7H 5S' expected: but was: has a duplicate card on the player hand
Missed that. Thanks for the prompt response.
also please explain how this is a tie:
Test("Equal cards is tie", tie, "2S AH 4H 5S 6C", "AD 4C 5H 6H 2C");
Java
Test("Highest pair wins", loss, "6S AD 7H 4S AS", "AH AC 5H 6H 7S");
Not an expert in poker but assuming the suit order low to high C, D, H, S shouldn't the left hand win? why does the test expects a loss?
19--45=5? => -1?
19-(-45)=64
I don't get why the expected result is -1?