Skip to content

Commit 01ec301

Browse files
authored
Update Max Consecutive Ones III - Leetcode 1004.py
1 parent 54f2536 commit 01ec301

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Max Consecutive Ones III - Leetcode 1004.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ def longestOnes(self, nums: List[int], k: int) -> int:
1717
max_w = max(max_w, w)
1818

1919
return max_w
20+
21+
# Time Complexity: O(n)
22+
# Space Complexity: O(1)

0 commit comments

Comments
 (0)