Find the maximum bitwise OR after doubling elements up to k times.
Unlock detailed company stats for this questionUpgrade
Given an array of n integers, you can perform the following operation up to k times: choose an index i (0 < i < n) and replace arr[i] with arr[i] * 2. Return the maximum possible bitwise OR of the array. Example: arr=[12,9], k=1 returns 30.
Community answers
No answers contributed by the community yet.


