Sunday, July 16, 2017

project euler 054

Poker Hands

This problem is easy but a little bit boring. And it is not really hard to get the correct answer.  One thing that I found in hackerrank.com is that my code give the wrong answer on a special straight or straight flush like
"1H 2H 3H 4H 5H     2H 3H 4H 5H 6H". The second hand is larger that the first hand.

No comments:

Post a Comment