Card Straight Check
Oracle interview questions · Easy · Coding round · 6 tests
You are given five distinct playing-card values. Determine whether they can form a straight: five consecutive ranks in any order, regardless of suit.
Function signature
isCardStraight(cards: string[]): boolean
Rules
Run your code with Ctrl+Enter to see results.