Created
May 28, 2014 18:41
-
-
Save benwaffle/b69403f6344e3ecbea9e to your computer and use it in GitHub Desktop.
Reassurance Sort
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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