Problem 898 · Medium

Bitwise ORs of Subarrays

Count how many different values come from OR-ing contiguous subarrays together. The visual keeps the set of OR results ending at each index, which changes only a few times.

Open the interactive visualisation