Problem 3858 · Medium

Minimum Bitwise OR From Grid

Clear bits from the top down whenever every row still has a value that fits inside the smaller mask.

Open the interactive visualisation