You are given an integer array nums of length n and a positive integer k.
The power of an array is defined as the number of its subsequences whose elements sum up to k.
Return the sum of the power of all subsequences of nums. Since the answer may be very large, return it modulo
Constraints:
n
nums[i]
k
You are given an integer array nums of length n and a positive integer k.
The power of an array is defined as the number of its subsequences whose elements sum up to k.
Return the sum of the power of all subsequences of nums. Since the answer may be very large, return it modulo
Constraints:
n
nums[i]
k