Given an integer array nums, determine the maximum possible bitwise OR value of any of its subsets. Return the number of non empty subsets that yield this maximum bitwise OR value.
An array a is a subset of an array b if a can be obtained from b by deleting some (possibly zero) elements of b. Two subsets are considered distinct if they are formed by choosing elements from different indices of nums.
Constraints:
nums.length
nums[i]
Given an integer array nums, determine the maximum possible bitwise OR value of any of its subsets. Return the number of non empty subsets that yield this maximum bitwise OR value.
An array a is a subset of an array b if a can be obtained from b by deleting some (possibly zero) elements of b. Two subsets are considered distinct if they are formed by choosing elements from different indices of nums.
Constraints:
nums.length
nums[i]