Movatterモバイル変換


[0]ホーム

URL:


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

Commit9dc1ac2

Browse files
authored
Update KadaneAlgorithm.java
1 parent62fdf0d commit9dc1ac2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Dynamic Programming/KadaneAlgorithm.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ public class KadaneAlgorithm {
1414
/**
1515
* This method implements Kadane's Algorithm
1616
*
17-
* @param arr The input array
17+
* @param arr The input array
1818
* @return The maximum contiguous subarray sum of the array
19-
*
20-
*/
19+
*
20+
*/
2121
staticintlargestContiguousSum(intarr[]){
2222
inti,len=arr.length,cursum=0,maxsum=Integer.MIN_VALUE;
2323
if(len==0)//empty array

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp