Example 1
1 <= m, n <= 104There will be at least one free cell for each call to flip.At most 1000 calls will be made to flip and reset.Example 1
1 <= m, n <= 104There will be at least one free cell for each call to flip.At most 1000 calls will be made to flip and reset.