Skip to content

Commit b8a82ce

Browse files
committed
Fix interface
1 parent ca1c8e5 commit b8a82ce

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package com.packt.datastructuresandalg.lesson4.activity.maxsubarray;
22

33
public class MaximumSubarray {
4-
public int maxSubarray(int[] a) { return null; }
4+
public Integer maxSubarray(int[] a) { return null; }
55
}

src/main/java/com/packt/datastructuresandalg/lesson4/activity/maxsubarray/solution/MaximumSubarray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public int maxSubarrayAux(int[] a, int l, int h) {
3232
}
3333
}
3434

35-
public int maxSubarray(int[] a) {
35+
public Integer maxSubarray(int[] a) {
3636
return maxSubarrayAux(a, 0, a.length - 1);
3737
}
3838

0 commit comments

Comments
 (0)