Back to problems

Compare Incomplete Hands

Algorithm · Rippling · Hard

Problem: Decide the Outcome for Two Incomplete Hands: win/loss/draw/undetermined Extend the earlier hand-evaluation task to account for unreliable delivery: either player's hand can arrive with some cards missing. Using only the cards currently available for each player, determine whether the result must be one of the following: user1 (player 1 wins regardless of the missing cards) user2 (player 2 wins regardless of the missing cards) tie (every possible completion ends in a…

Checking your access…