A sequence is defined as special if it contains at least one
Given an integer array nums, return the number of distinct special subsequences modulo
Note: A subsequence is formed by deleting zero or more elements from an array without altering the relative order of the remaining elements. Two subsequences are considered distinct if they are formed using different sets of indices.
Constraints:
nums.length
nums[i]
A sequence is defined as special if it contains at least one
Given an integer array nums, return the number of distinct special subsequences modulo
Note: A subsequence is formed by deleting zero or more elements from an array without altering the relative order of the remaining elements. Two subsequences are considered distinct if they are formed using different sets of indices.
Constraints:
nums.length
nums[i]