The Number of Beautiful Subsets
Given an array of integers nums and an integer k, count the number of beautiful non-empty subsets. A subset is beautiful if no two elements in it have absolute difference equal to k.
Given an array of integers nums and an integer k, count the number of beautiful non-empty subsets. A subset is beautiful if no two elements in it have absolute difference equal to k.