From 94ddafb25ad9249359a23fbbe9656a747b9e25da Mon Sep 17 00:00:00 2001 From: 185****9023 <3543718091@qq.com> Date: Sun, 10 Sep 2023 13:35:32 +0000 Subject: [PATCH] 2209040042 --- ...\244\346\225\260\344\271\213\345\222\214.c" | 18 ++++++++++++++++++ ...\220\351\233\206\346\261\202\345\222\214.c" | 16 ++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 "2209040042/chapter1/\344\270\244\346\225\260\344\271\213\345\222\214.c" create mode 100644 "2209040042/chapter1/\345\245\207\346\225\260\345\255\220\351\233\206\346\261\202\345\222\214.c" diff --git "a/2209040042/chapter1/\344\270\244\346\225\260\344\271\213\345\222\214.c" "b/2209040042/chapter1/\344\270\244\346\225\260\344\271\213\345\222\214.c" new file mode 100644 index 00000000..e68ff10f --- /dev/null +++ "b/2209040042/chapter1/\344\270\244\346\225\260\344\271\213\345\222\214.c" @@ -0,0 +1,18 @@ +int* twoSum(int* nums, int numsSize, int target, int* returnSize){ + int i,j; + *returnSize=2; + int *a=(int*)malloc(sizeof(int)*2); + for(i=0;i