We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a750988 commit a543e9bCopy full SHA for a543e9b
src/main/java/com/fishercoder/solutions/_525.java
@@ -3,23 +3,6 @@
3
import java.util.HashMap;
4
import java.util.Map;
5
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
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
- */
23
public class _525 {
24
25
public static class Solution1 {
0 commit comments