Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
03
:
10
:
16
Back to Dashboard
Poker Hand Validator
Medium
You are given a hand of exactly 5 cards drawn from a standard 52-card deck. Each card is a string in the format "<RANK> of <SUIT>", where RANK is one of "2" to "10", "J", "Q", "K", or "A", and SUIT is one of "hearts", "diamonds", "clubs", or "spades".
A hand is valid if it matches at least one of the following patterns: ...