Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
With the given constraints, could a brute force solution pass?
What would a brute force solution look like?
We can try every single possibility of choosing to do an operation on a cell with a 1 or choosing to ignore it.