Skip to content

Commit 6de26a5

Browse files
fix build
1 parent 110836f commit 6de26a5

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+2
-2
lines changed

src/main/java/com/fishercoder/solutions/_852.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ public class _852 {
2525
public static class Solution1 {
2626
public int peakIndexInMountainArray(int[] A) {
2727
for (int i = 1; i < A.length - 1; i++) {
28-
if (A[i] > A[i+1]) {
28+
if (A[i] > A[i + 1]) {
2929
return i;
3030
}
3131
}
32-
return 0;
32+
return -1;
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)