We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de97abf + ab34c32 commit 45b3136Copy full SHA for 45b3136
mergesort/mergesort.c
@@ -1,7 +1,12 @@
1
#include "mergesort.h"
2
3
-void mergesort(int, int*) {
+void mergesort(int size, int values[]) {
4
// This obviously doesn't actually do any *sorting*, so there's
5
// certainly work still to be done.
6
+ //
7
+ // Remember that a key goal here is to learn to use
8
+ // `malloc/calloc` and `free`, so make sure you explicitly
9
+ // allocate any new arrays that you need, even if you
10
+ // might not strictly need to.
11
return;
12
}
0 commit comments