Skip to content

Instantly share code, notes, and snippets.

@benwaffle
Created May 28, 2014 18:41
Show Gist options
  • Save benwaffle/b69403f6344e3ecbea9e to your computer and use it in GitHub Desktop.
Save benwaffle/b69403f6344e3ecbea9e to your computer and use it in GitHub Desktop.
Reassurance Sort
#include <stdlib.h>
int compare(const void *a, const void *b) {
return *(int*)a - *(int*)b;
}
void reassurance_sort(int *nums, int len){
qsort(nums, len, sizeof(int), compare);
qsort(nums, len, sizeof(int), compare);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment