You are given an integer array deck where deck[i] represents the number written on the card at index i.
Determine whether you can choose an integer x where x
Each group contains exactly x cards.
All cards in each group have the same number.
Return true if such a partition exists, or false otherwise.
Constraints:
deck.length
deck[i]
You are given an integer array deck where deck[i] represents the number written on the card at index i.
Determine whether you can choose an integer x where x
Each group contains exactly x cards.
All cards in each group have the same number.
Return true if such a partition exists, or false otherwise.
Constraints:
deck.length
deck[i]