You are given a grid containing characters 'B' and 'W', representing black and white cells respectively.
Determine if it is possible to form a
Return true if it is possible, or false otherwise.
Constraints:
grid.length
grid[i].length
grid[i][j] is either 'W' or 'B'.
You are given a grid containing characters 'B' and 'W', representing black and white cells respectively.
Determine if it is possible to form a
Return true if it is possible, or false otherwise.
Constraints:
grid.length
grid[i].length
grid[i][j] is either 'W' or 'B'.