Skip to content

Commit 2548e3c

Browse files
authored
Update Readme.md
1 parent 5113fe7 commit 2548e3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Two Sum Problem/Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
Given a binary array *nums*, return the **maximum length of a contiguous subarray** with an equal number of 0 and 1.
44

5-
#### Example 1:
5+
### Example 1:
66
```
77
INPUT: nums = [0,1]
88
OUTPUT: 2
99
EXPLANATION: [0,1] is the longest contiguous subarray with equal number of 0 and 1.
1010
```
1111

12-
#### Example 2:
12+
### Example 2:
1313
```
1414
INPUT: nums = [0,1,0]
1515
OUTPUT: 2
1616
EXPLANATION: [0,1] (or [1,0]) is the longest contiguous subarray with equal number of 0 and 1.
1717
```
1818

19-
#### Constraints:
19+
### Constraints:
2020

2121
- ``` 1 <= nums.length <= 10^5 ```
2222
- ``` nums[i] is either 0 or 1 ```

0 commit comments

Comments
 (0)