Problem 2347 · Easy

Best Poker Hand

Check for a flush first, then grade the hand by the largest number of cards that share a rank.

Open the interactive visualisation