#3858
Minimum Bitwise OR From Grid
medium · 24.9% accepted · 103 likes · top 4%
Description
You are given a 2D integer array grid of size m x n.
You must select exactly one integer from each row of the grid.
Return an integer denoting the minimum possible bitwise OR of the selected integers from each row.
Solution