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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Genius
Looks like in PHP test 14 does not treat like 1.
Should I return true here?
UPD: 14 counted as 14 and as 1 simultaneously.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Poker hands consist of 5 cards, as mentioned in the description:
"makes up a straight (five cards of sequential rank"
the 5 card straight (7-8-9-10-11) exists in those 7 cards.
All my tests are passing except test9IsStraight(PokerHandTest). I got a "Runtime Error Occurred".
What's the condition to that test??
How come the example 2-7-8-5-10-9-11 is straight??
shouldn't it be isNotStraight?
You're right, was an error in the test. Should be fixed now :)
Description is not clear in part of "The number of cards will vary, but will never be more than 7 (the board (5) + player hand (2))".
This Kata is not for level 7kuy definitely. Probably for 6kuy.
Java version :
The description says : "The number of cards will vary, but will never be more than 7 (the board (5) + player hand (2))"
And yet, some test case inputs contains 14, 21, 28 elements.... Please fix either description or test cases :)
Added random input
Loading more items...