Skip to content

Commit 9dc1ac2

Browse files
authored
Update KadaneAlgorithm.java
1 parent 62fdf0d commit 9dc1ac2

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
static int largestContiguousSum(int arr[]){
2222
int i,len=arr.length,cursum=0,maxsum=Integer.MIN_VALUE;
2323
if(len==0) //empty array

0 commit comments

Comments
 (0)