Skip to content

Commit a543e9b

Browse files
refactor 525
1 parent a750988 commit a543e9b

File tree

1 file changed

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

1 file changed

+0
-17
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@
33
import java.util.HashMap;
44
import java.util.Map;
55

6-
/**
7-
* 525. Contiguous Array
8-
*
9-
* Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.
10-
11-
Example 1:
12-
Input: [0,1]
13-
Output: 2
14-
Explanation: [0, 1] is the longest contiguous subarray with equal number of 0 and 1.
15-
16-
Example 2:
17-
Input: [0,1,0]
18-
Output: 2
19-
Explanation: [0, 1] (or [1, 0]) is a longest contiguous subarray with equal number of 0 and 1.
20-
21-
Note: The length of the given binary array will not exceed 50,000.
22-
*/
236
public class _525 {
247

258
public static class Solution1 {

0 commit comments

Comments
 (0)