You are given an integer array nums and a positive integer k.
The sequence value of a subsequence of length
Finding the bitwise OR of its first
Finding the bitwise OR of its remaining
Taking the bitwise XOR of the two resulting values.
Return the maximum possible sequence value achievable from any subsequence of nums having length
Constraints:
nums.length
nums[i]
k nums.length
You are given an integer array nums and a positive integer k.
The sequence value of a subsequence of length
Finding the bitwise OR of its first
Finding the bitwise OR of its remaining
Taking the bitwise XOR of the two resulting values.
Return the maximum possible sequence value achievable from any subsequence of nums having length
Constraints:
nums.length
nums[i]
k nums.length