You are given an integer array nums and an integer k.
A partition of the array into two groups is considered a great partition if:
Every element in nums belongs to exactly one of the two groups.
The sum of elements in each group is greater than or equal to k.
Return the number of distinct great partitions. Since the answer may be large, return it modulo
Two partitions are considered distinct if there is at least one element of nums that is assigned to different groups in the two partitions.
Constraints:
nums.length, k
nums[i]
You are given an integer array nums and an integer k.
A partition of the array into two groups is considered a great partition if:
Every element in nums belongs to exactly one of the two groups.
The sum of elements in each group is greater than or equal to k.
Return the number of distinct great partitions. Since the answer may be large, return it modulo
Two partitions are considered distinct if there is at least one element of nums that is assigned to different groups in the two partitions.
Constraints:
nums.length, k
nums[i]