Problem
Given an integer arraynums and an integer k, return true if it is possible to divide this array into k non-empty subsets whose sums are all equal.
Examples
Constraints
- 1 <= k <= nums.length <= 16
- 1 <= nums[i] <= 10^4
- The frequency of each element is in the range [1, 4].