Skip to content

Commit 6e7a0da

Browse files
committed
fix linter errors
1 parent 7eafb65 commit 6e7a0da

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎arrays/find_max_consecutive_ones.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from typing import List
22

3+
34
def find_max_consecutive_ones(nums: List[int]) -> int:
45
max_ones = 0
56

67
if not nums:
78
return max_ones
8-
9+
910
ones_count = 0
1011

1112
for num in nums:
@@ -16,4 +17,4 @@ def find_max_consecutive_ones(nums: List[int]) -> int:
1617

1718
max_ones = max(max_ones, ones_count)
1819

19-
return max_ones
20+
return max_ones

0 commit comments

Comments
 (0)