From 73b0b207c0139c1453789ed6964ecb1f22024f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B7=E7=A3=8A?= <2775662310@qq.com> Date: Wed, 13 Sep 2023 13:50:31 +0000 Subject: [PATCH] test --- ...4\346\225\260\344\271\213\345\222\214.cpp" | 19 +++++++++++++++ ...7\346\225\260\344\271\213\345\222\214.cpp" | 24 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 "2209040004/chapter1/\344\270\244\346\225\260\344\271\213\345\222\214.cpp" create mode 100644 "2209040004/chapter1/\345\245\207\346\225\260\344\271\213\345\222\214.cpp" diff --git "a/2209040004/chapter1/\344\270\244\346\225\260\344\271\213\345\222\214.cpp" "b/2209040004/chapter1/\344\270\244\346\225\260\344\271\213\345\222\214.cpp" new file mode 100644 index 00000000..8586fde2 --- /dev/null +++ "b/2209040004/chapter1/\344\270\244\346\225\260\344\271\213\345\222\214.cpp" @@ -0,0 +1,19 @@ +int* twoSum(int* nums, int numsSize, int target, int* returnSize) +{ +int i=0,j=0; +int *a=(int*)malloc(sizeof(int)*2); +for(i=0;i