</>OfferRetriever
DashboardDiscuss
NEW

July 4th Sale

Limited Time Deal: Unlock all premium questions for over 40% off

$10.42$6.25

10

:

09

:

27

:

02

Get this deal
Back to Dashboard

Card Straight Check

Easy

You are dealt five playing cards. Determine whether they can form a straight, which is a sequence of five consecutive values regardless of suit.

Card values are represented as strings: "A", "2", "3", ..., "10", "J", "Q", "K". An Ace ("A") may count as either 1 or 14, but not both simultaneously. All five cards are distinct and the order does not matter. ...