Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 04201c1

Browse files
update 1.1-maximum sum subarray of size k
1 parent 3ae605b commit 04201c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎1.-pattern-sliding-window/1.1-maximum-sum-subarray-of-size-k-easy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ We can think of the 'k' as window size of sliding window in an array.
3131
So, code for that condition:
3232

3333
```java
34-
public int voidmaxSumOfContiguousSubArray(int arr[], int k) {
34+
public int maxSumOfContiguousSubArray(int arr[], int k) {
3535
int maxSum = 0; // It will keep the maximum Sum of the subarrays
3636
// with the size 'k' and it will have the result by the end of the for-loop
3737

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /