This commit is contained in:
sangge-rockpi 2024-01-19 20:33:27 +08:00
parent 370535504e
commit 0629a672af

View File

@ -14,9 +14,10 @@ class Solution:
temp_list = nums
temp_list.pop(i)
if another not in temp_list:
continue
answer.append(i)
answer.append(temp_list.index(another) + 1)
answer.append(i)
answer.append(nums.index(target - nums[i]))
answer.append(nums.index(another))
return answer
return answer