You are given an integer array nums.
For any permutation perm of nums, an array power of size i from power[i] represents the length of the longest prefix of perm where every element has the bit at position
Return the lexicographically largest power array that can be obtained by choosing an optimal permutation perm.
An array a is lexicographically larger than an array b of the same length if, at the first index where they differ, array a contains a value strictly greater than the corresponding value in array b.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
For any permutation perm of nums, an array power of size i from power[i] represents the length of the longest prefix of perm where every element has the bit at position
Return the lexicographically largest power array that can be obtained by choosing an optimal permutation perm.
An array a is lexicographically larger than an array b of the same length if, at the first index where they differ, array a contains a value strictly greater than the corresponding value in array b.
Constraints:
nums.length
nums[i]