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 5113fe7 commit 2548e3cCopy full SHA for 2548e3c
Two Sum Problem/Readme.md
@@ -2,21 +2,21 @@
2
3
Given a binary array *nums*, return the **maximum length of a contiguous subarray** with an equal number of 0 and 1.
4
5
-#### Example 1:
+### Example 1:
6
```
7
INPUT: nums = [0,1]
8
OUTPUT: 2
9
EXPLANATION: [0,1] is the longest contiguous subarray with equal number of 0 and 1.
10
11
12
-#### Example 2:
+### Example 2:
13
14
INPUT: nums = [0,1,0]
15
16
EXPLANATION: [0,1] (or [1,0]) is the longest contiguous subarray with equal number of 0 and 1.
17
18
19
-#### Constraints:
+### Constraints:
20
21
- ``` 1 <= nums.length <= 10^5 ```
22
- ``` nums[i] is either 0 or 1 ```
0 commit comments