← ALL NOTES
Array

2411. Smallest Subarrays With Maximum Bitwise OR

For each index i, find the length of the smallest subarray starting at i whose bitwise OR is maximal (equal to the OR of all nums[i..n−1]). Return the array of these lengths. The maximal suffix-OR is…

Loading…