We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62fdf0d commit 9dc1ac2Copy full SHA for 9dc1ac2
1 file changed
Dynamic Programming/KadaneAlgorithm.java
@@ -14,10 +14,10 @@ public class KadaneAlgorithm {
14
/**
15
* This method implements Kadane's Algorithm
16
*
17
- * @param arr The input array
+ * @param arr The input array
18
* @return The maximum contiguous subarray sum of the array
19
- *
20
- */
+ *
+ */
21
static int largestContiguousSum(int arr[]){
22
int i,len=arr.length,cursum=0,maxsum=Integer.MIN_VALUE;
23
if(len==0) //empty array
0 commit comments