Skip to content

Commit 9e87c68

Browse files
refactor 302
1 parent 4a62a1d commit 9e87c68

File tree

1 file changed

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

1 file changed

+0
-18
lines changed

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

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

3-
/**
4-
* 302. Smallest Rectangle Enclosing Black Pixels
5-
*
6-
* An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel.
7-
* The black pixels are connected, i.e., there is only one black region.
8-
* Pixels are connected horizontally and vertically.
9-
* Given the location (x, y) of one of the black pixels, return the area of the smallest (axis-aligned) rectangle that encloses all black pixels.
10-
11-
For example, given the following image:
12-
13-
[
14-
"0010",
15-
"0110",
16-
"0100"
17-
]
18-
and x = 0, y = 2,
19-
Return 6.
20-
*/
213
public class _302 {
224
public static class Solution1 {
235
private char[][] image;

0 commit comments

Comments
 (0)