Given an m by n grid picture of characters where each element is either 'W' representing white or 'B' representing black, and an integer target, return the total number of black pixels picture[r][c] that satisfy the following conditions:
Row r has exactly target black pixels.
Column c has exactly target black pixels.
All rows containing a black pixel at column c are completely identical to row r.
Constraints:
m == picture.length
n == picture[i].length
m, n
picture[i][j] is 'W' or 'B'.
target m, n
Given an m by n grid picture of characters where each element is either 'W' representing white or 'B' representing black, and an integer target, return the total number of black pixels picture[r][c] that satisfy the following conditions:
Row r has exactly target black pixels.
Column c has exactly target black pixels.
All rows containing a black pixel at column c are completely identical to row r.
Constraints:
m == picture.length
n == picture[i].length
m, n
picture[i][j] is 'W' or 'B'.
target m, n