You are given an array of integers nums and an integer k.
Your task is to find the minimum possible absolute difference between k and the bitwise OR of all elements in any contiguous subarray of nums.
Return this minimum absolute difference.
Note: A subarray is a contiguous sequence of elements within an array.
Constraints:
nums.length
nums[i]
k
You are given an array of integers nums and an integer k.
Your task is to find the minimum possible absolute difference between k and the bitwise OR of all elements in any contiguous subarray of nums.
Return this minimum absolute difference.
Note: A subarray is a contiguous sequence of elements within an array.
Constraints:
nums.length
nums[i]
k