week9 T8.c clang-format

This commit is contained in:
2021-04-28 23:16:45 +08:00
parent cd40e98e6b
commit c910888f44

View File

@@ -65,8 +65,10 @@ void QuickSort(int *A, int left, int right) {
j = right - 1;
while (1) {
while (A[++i] < pivot) {}
while (A[--j] > pivot) {}
while (A[++i] < pivot) {
}
while (A[--j] > pivot) {
}
if (i >= j) {
break;
}
@@ -130,6 +132,6 @@ void Swap(int *a, int *b) {
}
void PrintTimeDuration(clock_t start_time, clock_t end_time) {
printf("Time cost: %ld ms\n", (end_time - start_time) / (CLOCKS_PER_SEC / 1000));
printf("Time cost: %ld ms\n",
(end_time - start_time) / (CLOCKS_PER_SEC / 1000));
}