Find Straight Flush From Cards

Given a list of playing cards (each with a suit and a rank such as 2-10,J,Q,K,A), determine whether the cards contain a straight flush: 5 cards of the same suit with consecutive ranks.

Return...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: