Skip to content

Commit 68be080

Browse files
committed
Runtime: 0 ms (Top 100.00%) | Memory: 41.6 MB (Top 54.56%)
1 parent 4b11a99 commit 68be080

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/C/Check if Array Is Sorted and Rotated/Check if Array Is Sorted and Rotated.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 0 ms (Top 100.00%) | Memory: 41.6 MB (Top 54.56%)
12
class Solution {
23
public boolean check(int[] nums) {
34
// here we compare all the neighbouring elemnts and check whether they are in somewhat sorted
@@ -12,4 +13,4 @@ public boolean check(int[] nums) {
1213
}
1314
return irregularities > 1 ? false : true;
1415
}
15-
}
16+
}

0 commit comments

Comments
 (0)