(int arr[], int i)
| 47 | } |
| 48 | |
| 49 | public static boolean isSorted(int arr[], int i) { |
| 50 | if(i == arr.length-1) { |
| 51 | return true; |
| 52 | } |
| 53 | |
| 54 | if(arr[i] > arr[i+1]) { |
| 55 | return false; |
| 56 | } |
| 57 | |
| 58 | return isSorted(arr, i+1); |
| 59 | } |
| 60 | |
| 61 | public static int firstOccurence(int arr[], int key, int i) { |
| 62 | if(i == arr.length) { |
nothing calls this directly
no outgoing calls
no test coverage detected