MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / checkIfSorted

Method checkIfSorted

Programs/Check_If_Sorted.java:10–15  ·  view source on GitHub ↗
(int[] toCheck, int pointer)

Source from the content-addressed store, hash-verified

8 }
9
10 private static boolean checkIfSorted(int[] toCheck, int pointer) {
11 if (pointer == toCheck.length - 1) {
12 return true;
13 }
14 return toCheck[pointer] < toCheck[pointer + 1] && checkIfSorted(toCheck, pointer + 1);
15 }
16}

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected