File tree 1 file changed +0
-19
lines changed
src/main/java/com/fishercoder/solutions
1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 1
1
package com .fishercoder .solutions ;
2
2
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
- */
22
3
public class _531 {
23
4
24
5
public static class Solution1 {
You can’t perform that action at this time.
0 commit comments