LeetCode 167. Two Sum II - Input array is sorted

開始忘記了寫break,後面沒有考慮到答案到下標不是從0開始到 第一次提交 代碼 int* twoSum(int* numbers, int numbersSize, int target, int* returnSize) { int i = 0; int j = numbersSize - 1; *returnSize = 2; int *ret = (int*
相關文章
相關標籤/搜索