(int [] arr, int i, int j)
| 61 | return arr; |
| 62 | } |
| 63 | public static void swap(int [] arr, int i, int j) { |
| 64 | // i = number to be swapped. |
| 65 | // j = number with which it is swapped. |
| 66 | |
| 67 | int temp = arr[i]; |
| 68 | arr[i] = arr[j]; |
| 69 | arr[j] = temp; |
| 70 | } |
| 71 | |
| 72 | |
| 73 | public static int [] sort012threePointerApproach(int [] arr) { |
no outgoing calls
no test coverage detected