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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy