Permalink
Browse files

Removed debug logging.

  • Loading branch information...
1 parent 75cef7f commit 37a3afceab1becc1bdce11582f6916de7a36049f @pozorvlak committed Mar 20, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 sort.c
View
@@ -13,20 +13,17 @@ void print_array(int* arr, int size)
void quicksort(int *start, int size)
{
- print_array(start, size);
if (size <= 1) {
return;
}
int pivot = *start;
- printf("Pivot is %d\n", pivot);
int less_than = 0;
int i;
for (i = 0; i < size; i++) {
if (start[i] < pivot) {
less_than++;
}
}
- printf("Found %d elts less than pivot\n", less_than);
int swap = start[less_than];
start[less_than] = pivot;
*start = swap;

0 comments on commit 37a3afc

Please sign in to comment.