0914. X of a Kind in a Deck of Cards
Description
**Input:** deck = [1,2,3,4,4,3,2,1]
**Output:** true
**Explanation**: Possible partition [1,1],[2,2],[3,3],[4,4].**Input:** deck = [1,1,1,2,2,2,3,3]
**Output:** false
**Explanation**: No possible partition.**Input:** deck = [1]
**Output:** false
**Explanation**: No possible partition.ac
Last updated