Skip to content

Commit 1696488

Browse files
authored
Update Maximum Average Subarray I - Leetcode 643.py
1 parent fd0aabb commit 1696488

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Maximum Average Subarray I - Leetcode 643.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ def findMaxAverage(self, nums: List[int], k: int) -> float:
1616
max_avg = max(max_avg, avg)
1717

1818
return max_avg
19+
20+
# Time Complexity: O(n)
21+
# Space Complexity: O(1)

0 commit comments

Comments
 (0)