You are given an array nums of positive integers and a positive integer k.
A subset of nums is considered beautiful if it does not contain any pair of elements with an absolute difference equal to k.
Return the total number of non empty beautiful subsets of nums.
Note: A subset is formed by deleting zero or more elements from
nums. Two subsets are distinct if they are chosen from different indices ofnums.
Constraints:
nums.length
nums[i], k
You are given an array nums of positive integers and a positive integer k.
A subset of nums is considered beautiful if it does not contain any pair of elements with an absolute difference equal to k.
Return the total number of non empty beautiful subsets of nums.
Note: A subset is formed by deleting zero or more elements from
nums. Two subsets are distinct if they are chosen from different indices ofnums.
Constraints:
nums.length
nums[i], k