Given an integer array nums and an integer k, determine whether it is possible to divide the array into sets where each set contains exactly k consecutive integers.
Return true if nums can be partitioned into such sets, and false otherwise.
Constraints:
k nums.length
nums[i]
Given an integer array nums and an integer k, determine whether it is possible to divide the array into sets where each set contains exactly k consecutive integers.
Return true if nums can be partitioned into such sets, and false otherwise.
Constraints:
k nums.length
nums[i]