Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 166b9f6

Browse files
refactor 487
1 parent b3a55bb commit 166b9f6

File tree

1 file changed

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

1 file changed

+0
-13
lines changed

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

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

3-
/**
4-
* Given a binary array, find the maximum number of consecutive 1s in this array.
5-
6-
Example 1:
7-
Input: [1,1,0,1,1,1]
8-
Output: 3
9-
Explanation: The first two digits or the last three digits are consecutive 1s.
10-
The maximum number of consecutive 1s is 3.
11-
Note:
12-
13-
The input array will only contain 0 and 1.
14-
The length of input array is a positive integer and will not exceed 10,000
15-
*/
163
public class _487 {
174

185
public static int findMaxConsecutiveOnes(int[] nums) {

0 commit comments

Comments
 (0)