Given an integer array nums, a subsequence is defined as a good subsequence if the absolute difference between every pair of consecutive elements in the subsequence is exactly
Return the total sum of all elements across all possible good subsequences of nums. Since the answer may be very large, return it modulo
Constraints:
nums.length
nums[i]
Given an integer array nums, a subsequence is defined as a good subsequence if the absolute difference between every pair of consecutive elements in the subsequence is exactly
Return the total sum of all elements across all possible good subsequences of nums. Since the answer may be very large, return it modulo
Constraints:
nums.length
nums[i]