Skip to content

Commit 165cf34

Browse files
refactor 531
1 parent 7e18edf commit 165cf34

File tree

1 file changed

+0
-19
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-19
lines changed

src/main/java/com/fishercoder/solutions/_531.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 531. Lonely Pixel I
5-
*
6-
* Given a picture consisting of black and white pixels, find the number of black lonely pixels.
7-
* The picture is represented by a 2D char array consisting of 'B' and 'W', which means black and white pixels respectively.
8-
* A black lonely pixel is character 'B' that located at a specific position where the same row and same column don't have any other black pixels.
9-
10-
Example:
11-
Input:
12-
[['W', 'W', 'B'],
13-
['W', 'B', 'W'],
14-
['B', 'W', 'W']]
15-
16-
Output: 3
17-
Explanation: All the three 'B's are black lonely pixels.
18-
19-
Note:
20-
The range of width and height of the input 2D array is [1,500].
21-
*/
223
public class _531 {
234

245
public static class Solution1 {

0 commit comments

Comments
 (0)