(int[] arr)
| 1 | public static void insertionSort(int[] arr) { |
| 2 | for (int i = 1; i < arr.length; i++) { |
| 3 | int key = arr[i]; |
| 4 | int j = i - 1; |
| 5 | while (j >= 0 && arr[j] > key) { |
| 6 | arr[j + 1] = arr[j]; |
| 7 | j--; |
| 8 | } |
| 9 | arr[j + 1] = key; |
| 10 | } |
| 11 | } |
nothing calls this directly
no outgoing calls
no test coverage detected