Skip to content

Commit 93462c5

Browse files
committed
Time: 0 ms (100.00%) | Memory: 41.1 MB (64.20%) - LeetSync
1 parent c757bca commit 93462c5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

1878-check-if-array-is-sorted-and-rotated/check-if-array-is-sorted-and-rotated.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ public boolean check(int[] nums) {
66
if(nums[i] > nums[i+1])
77
count++;
88
}
9-
109
if(count == 0)
1110
return true;
1211
else if(count > 1)

0 commit comments

Comments
 (0)