I am trying to solve this problem and I get wrong answer here could someone give me a test case where my code fails . I tried
input
11
AH KH QH TH JH
KH 5S 3C 5C 7D
QH QD 2S QC 2C
AH AS AC 2C 5D
AH AS AC AD 4D
9H KH QH TH JH
9H KH 2H TH JH
9H TD 9C TH JH
QH KD 2S 4C 3C
QH KD 2S 4C 4D
QH KD AS 5C 3D
output
royal flush
pair
full house
three of a kind
four of a kind
straight flush
flush
two pairs
high card
pair
high card