You are given an integer array ranks and a character array suits. There are ranks[i] and a suit of suits[i].
Return a string representing the highest ranking poker hand that can be formed from the given cards.
The possible poker hands, ordered from best to worst, are:
"Flush": "Three of a Kind": "Pair": "High Card": Any single card that does not meet the criteria of the hands above.
Note: The returned hand must be the highest ranking hand among all valid hands that can be formed.
Constraints:
ranks.length suits.length
ranks[i]
'a' suits[i] 'd'
No two cards have the same rank and suit.
You are given an integer array ranks and a character array suits. There are ranks[i] and a suit of suits[i].
Return a string representing the highest ranking poker hand that can be formed from the given cards.
The possible poker hands, ordered from best to worst, are:
"Flush": "Three of a Kind": "Pair": "High Card": Any single card that does not meet the criteria of the hands above.
Note: The returned hand must be the highest ranking hand among all valid hands that can be formed.
Constraints:
ranks.length suits.length
ranks[i]
'a' suits[i] 'd'
No two cards have the same rank and suit.