(l, r, delay = 100)
| 126 | |
| 127 | // Asynchronous QuickSort function |
| 128 | async function QuickSort(l, r, delay = 100) { |
| 129 | if (l < r) { |
| 130 | // Storing the index of pivot element after partition |
| 131 | var pivot_idx = await lometo_partition(l, r); |
| 132 | // Recursively calling quicksort for left partition |
| 133 | await QuickSort(l, pivot_idx - 1); |
| 134 | // Recursively calling quicksort for right partition |
| 135 | await QuickSort(pivot_idx + 1, r); |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | // Calling generatearray function |
| 140 | generatearray(); |
nothing calls this directly
no test coverage detected