We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #54: Poker hands
Project Euler #54: Poker hands
Sort by
recency
|
23 Discussions
|
Please Login in order to post a comment
Some points-
1) You have to consider 10,Q,J,K,A too as consecutive cards as mentioned in last point in problem. And in it A is the highest card.
2) You have to consider A,2,3,4,5 too as consecutive cards and in it use 5 as highest. (test case 6, 2)
100/- points python 3
My code is right but still test cases is failed
It is usually the case that Aces can be high or low card depending on whether that is useful for making a straight. In which case a hand with A 2 3 4 5 is considered a 5 high straight. This is fairly standard for poker rules. It was not mentioned in the problem statement, but using this option on the Ace is necessary to pass all of the test cases, specifically case 6.
How do you pay? I prefer to pay with bitcoins, as it is safe.