You are given an integer array cards of length
Return true if you can obtain cards, and false otherwise.
Note:
The division operator (
) represents real division, not integer division. Every operation must be performed between two numbers. You cannot concatenate numbers together (for instance, if
cardscontainsand , you cannot form ). You must use all
integers, and each integer must be used exactly once.
Constraints:
cards.length
cards[i]
You are given an integer array cards of length
Return true if you can obtain cards, and false otherwise.
Note:
The division operator (
) represents real division, not integer division. Every operation must be performed between two numbers. You cannot concatenate numbers together (for instance, if
cardscontainsand , you cannot form ). You must use all
integers, and each integer must be used exactly once.
Constraints:
cards.length
cards[i]