Problem 3878 · Hard

Count Good Subarrays

Count subarrays whose bitwise OR equals one of the values inside that same subarray.

Open the interactive visualisation