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.
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)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Project Euler #54: Poker hands
You are viewing a single comment's thread. Return to all comments →
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)