Skip to content

Commit dd20087

Browse files
refactor 485
1 parent a48fd45 commit dd20087

File tree

1 file changed

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

1 file changed

+0
-15
lines changed

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

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

3-
/**
4-
* 485. Max Consecutive Ones
5-
*
6-
* Given a binary array, find the maximum number of consecutive 1s in this array.
7-
*
8-
* Example 1:
9-
*
10-
* Input: [1,1,0,1,1,1]
11-
* Output: 3
12-
* Explanation: The first two digits or the last three digits are consecutive 1s. The maximum number of consecutive 1s is 3.
13-
*
14-
* Note:
15-
* The input array will only contain 0 and 1.
16-
* The length of input array is a positive integer and will not exceed 10,000
17-
* */
183
public class _485 {
194
public static class Solution1 {
205
public int findMaxConsecutiveOnes(int[] nums) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy