Problem 2411 · Medium

Smallest Subarrays With Maximum Bitwise OR

For each start find the shortest subarray attaining that start suffix maximum bitwise OR.

Open the interactive visualisation