We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc09542 commit 71cb04eCopy full SHA for 71cb04e
src/main/java/com/fishercoder/solutions/_896.java
@@ -42,7 +42,7 @@ public static class Solution1 {
42
public boolean isMonotonic(int[] A) {
43
int i = 0;
44
for (; i < A.length - 1; i++) {
45
- if (A[i] <= A[i+1]) {
+ if (A[i] <= A[i + 1]) {
46
continue;
47
} else {
48
break;
@@ -53,7 +53,7 @@ public boolean isMonotonic(int[] A) {
53
}
54
i = 0;
55
56
- if (A[i] >= A[i+1]) {
+ if (A[i] >= A[i + 1]) {
57
58
59
0 commit comments