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.
1 parent ecaf278 commit 45df20cCopy full SHA for 45df20c
0001_two_sum/two_sum.c
@@ -1,6 +1,7 @@
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
+
5
struct object {
6
int val;
7
int index;
@@ -11,7 +12,7 @@ static int compare(const void *a, const void *b)
11
12
return ((struct object *) a)->val - ((struct object *) b)->val;
13
}
14
-static int * twosum(int *nums, int numsSize, int target, int *returnSize)
15
+int * twosum(int *nums, int numsSize, int target, int *returnSize)
16
{
17
int i, j;
18
struct object *objs = malloc(numsSize * sizeof(*objs));
0 commit comments